-----------------------------------------------------REQUIREMENTS-----------------------------------------------------
1.) ESX (No job required)
2.) progressbars
TO GET STARTED →
1.) Simply upload TunasTruckJob to your /resource folder
2.) Add ensure TunasTruckJob to your server.cfg
3.) Adjust uniforms in utils.lua (refer to video to honor my existence )
4.) If done correctly, you’ll be off trucking !
FEATURES
1.) Two locations to begin work (LS + Paleto Bay)
2.) 6 Unique jobs with multiple steps, decent animations
3.) POWER GRID COMPATIBLE → Grid deliveries adds life to power grid (easily toggleable)
4.) Approx. 0.01 → 0.10ms cpu & 0.10 - 1.1% memory usage from Idle → Working
oh my gosh, i really love all of your works tuna ! ^^
I made a little “command” for the job.
Normally, when people die or truck gets destroyed (on every truckerjob), they need to relog to stop the job and remove the blip.
I create commands for the users to stop the job manually. So i did it here to. If someone wants to use it, here is the code (command is “stoptruck” (you can change that, i just have many stop commands, so i needed to use this xD)
Serverside (payment lua) - you can change the name of the event to your liking
Clientside: - you can change the notification to your needs, i use pnotfiy in case someone try to execute the command when he is not on a route. you can use the common ESX.Shownotification event too.
RegisterNetEvent('gw:stoptruck')
AddEventHandler('gw:stoptruck', function()
local p = PlayerPedId()
local v = GetVehiclePedIsIn(p)
if onJob then
onjob = false
sC3 = nil
ClearAllBlipRoutes()
RemoveBlip(mB)
RemoveBlip(mB3)
ESX.Game.DeleteVehicle(v)
onJob = false
npcJob = false
ccJob = false
ccJob2 = false
bcJob = false
luxJob = false
luxReturn = false
pAnim = nil
pCoords = nil
xlJob = false
lsB = false
jobMenu = nil
else
TriggerEvent("pNotify:SendNotification", {
text = "<h4 class='' style='margin:0;padding:0;'>Trucker</h4><div><br>Du fährst gerade keine route!</div>",
type = "error",
queue = "lmao",
timeout = 3000,
layout = "bottomCenter"
})
end
end)
that is something you would need to implement whether players change back by clothing store; outfits etc… My personal preference is to leave the members in their work clothes until they go to a suitable place to change; However I have shared the code for others to improve and better fit their needs;
Yeah since this doesnt require a job in the job center its more of an activity for me so I just disabled it, also what is the reason for this number when you deliver something?