Here’s a better garbage job script that you can use for your roleplay server. It was developed by me with the help of my co-developer for the server NewDawn Roleplay.
I’m releasing this script for free and allowing everyone to edit/update however they want. This script is way better and simple than other garbage job scripts you can find on the forums.
Features
optimized code for both server-side and client-side
shows HQ blip only to the person having garbage job
random coords for garbage collection
random bins and a random amount of collection in a given mission coord radius
random rewards (drops) when putting the trash into the trunk
receives money when the job is done and the truck is submitted
Note: you can remove the trigger ndrp_carkeys from client.lua as it adds a key for the vehicle. If you have your own car key script, you should add your trigger over there.
when the job route is activated it disables radar; only way i found to turn the radar back on is with a cheat menu, when the job route is recalculated to the depot to finish the run the radar is again deactivated, anyone have this issue?
Hi @TheScotchGuy, I don’t develop in ESX but looking at the resource code I found this function in the client side, delete if you want to fix the radar or else adapt it to how you need it. Goodbye see you soon!
Citizen.CreateThread (function ()
while true do
Citizen.Wait (5)
if havingGarbageJob then
if not IsPedInAnyVehicle (GetPlayerPed (-1)) then
if doing Garbage then
DisplayRadar (true)
else
DisplayRadar (false)
end
end
end
end
end)