Hi there everybody,
In the present day I current my first script I made some time in the past, a trucker job with a number of routes!
You possibly can configure very simply the route for every truck within the config.
Config
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- SCRIPT BY REDYY#0449
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Config = {}
--- Choices ---
Config.MoneyPerDelivery = 500 -- Cash per Supply
Config.DeliveryFinalMoney = 1000 -- Closing Cash
Config.ActivateDamage = true -- if true will rely upon the lifetime of the truck and might be deaccountanted from the Closing Cash.
Config.DeleteTruckWhenFinish = false -- Will truck be deleted when end the job?
Config.AddDeliveryTruck = true -- Will the participant need to supply the truck when end the job?
Config.DeliveryTruckNotification = 'Carry the truck again to the marker.'
Config.CoordDeliveryTruck = vector3(-65.64, -2500.52, 6.00)
Config.MarkerDeliveryTruck = '[ ~g~E ~w~] Return truck'
Config.VehicleDelivered = 'You may have accomplished your tour, good job!'
Config.SpawnPointTrucker = { x = -102.83, y = -2529.71, z = 6.0 } -- The place Trucker will Spawn?
Config.TeleportPlayerToTruck = true -- Teleport Participant to truck when spawn?
----
--- Messages ---
Config.ReceiveMoney = 'You may have obtain ' .. Config.MoneyPerDelivery .. '$ for supply.'
Config.ReceiveFinalMoney = 'You gained ' .. Config.DeliveryFinalMoney .. '$ for closing supply.'
Config.ALittleBroken = 'Appears to be like just like the truck is somewhat tousled, you'll gained much less.'
Config.Damaged = 'Appears to be like just like the truck barely will not be working! You're going to need to pay for that.'
Config.NeedDeliveryFirst="~r~You'll want to supply the opposite location first."
---
--- Progress Bar ---
Config.Length = 5000 -- In MS
Config.Label="Deliverying"
Config.DisableMouse = false
----
Config.Menus = {
['start'] = {
identify="Trucker",
label="Begin a tour"
},
['trucks'] = {
identify="Select a truck",
choices = {"phantom","phantom3"}
},
['trailers'] = {
identify="Select a route",
choices = {
['trailers2'] = { -- Identify of trailer mannequin, can add/take away extra trailers.
identify="Trailers2",
route="route1" -- can change to route1/2/3/4.
},
['trailers4'] = {
identify="trailer4",
route="route2"
},
['trailers3'] = {
identify="Trailer 3",
route="route3"
},
['tanker2'] = {
identify="Tanker 2",
route="route4"
}
}
},
['confirm'] = {
identify="Begin the Tour?",
sure = {label="Sure"},
no = {label="No"}
}
}
Config.Markers = {
['start_job'] = {
identify="Begin",
cancel="Cancel",
occasion="ry_truckerjob:start_job",
coord = vector3(-59.63,-2523.16,6.15),
marker = {
sort = 2, -- can present in https://docs.fivem.internet/docs/game-references/markers/
dimension = {x = 0.5, y = 0.5, z = 0.5},
shade = {r = 204, g = 204, b = 0}
},
blip = {
Identify="Trucker",
Sprite = 67,
Scale = 0.8,
Color = 5
}
},
}
}
guarantee ry_progbar
guarantee ry_truckerjob