This FiveM resource enables the player to work as a truck driver and deliver cargo to locations around the map.
If you are using ND_Framework by Andy7666, you can reward the player for completing the job with money. If you want it to be standalone, then simply set UseND to false in the config.lua. You can also simply convert the script to make it work with any framework you want.
This job consists of 3 parts:
Start your shift at the truck depot, go pick up the trailer at a location.
Pick up the trailer and drive to the destination.
Detach the trailer and choose to get another job or return to the depot.
The player will be paid based on how many trailers have been delivered.
Features
Customise the amount of money you get when completing a task (if using ND)
Set a custom truck model for the job
Set the possible locations for the trailers to spawn
Set the possible destinations where you have to drive the trailer to
Add custom trailers
… and much more!
Check the config.lua for more information.
Preview
Resmon
Context
CPU
Idle
0.00 ms
Peak
0.02 ms
Installation
Rename the folder from TruckJob-main to TruckJob
Drag the folder to your server resource folder
Add start TruckJob or ensure TruckJob to your server.cfg
Changelog
v1.3
Added the possibility to force quit the job with a penalty
v1.2
Added server-side validations
Resmon on idle is now 0.00 ms
v1.1
Revamped and optimized code
Added possibility to accept a new job when a delivery has been made
v1.0
Initial Release
Download
ESX Legacy support has been added! Thanks to NaviMax30 and auramap for converting the script.
you know what would be cool… if you had the opportunity to accept a new order straight away without having to go back to the depot or, as is the case at the moment, drive back to the depot to finish the work
TOTALLY random bug – if mission is still going (needed to get truck for 2nd load) and you finance a vehicle, it will lock you in the car with no way to exit or drive… I couldn’t figure a way out but could replicate the issue again and again… honestly not the end of the world just got caught in it myself.
Yo I have almost this exact script for the old QBCore base but doesn’t work with the new version where this does… I’ll combine and if something truly cool comes from it I’ll share back so u can release. Thanks for getting the ball rolling.
OMG great addition!!! Can we get more of these type
jobs!!! This is amazing work!!! Trash truck job/package delivery/pizza delivery/rock cleaning any in the near future?!?
Amazing Yesssssssssssssss!!! Thank you Sir!!! Another cool addition being a Law Enforcement agency going around as a process server. Serving papers to residents and around the map just like the mail job. Just an idea, Also config for vehicle.json folder where you can edit/add you custom units we have in our servers!!!
I don’t really know much about esx since I never used it, but you can easily replace the function in the server.lua to the function used by esx to give player money and that’s it
I spent 6 hours doing it to make it work for esx and the truth is I don’t regret it and I know almost nothing about programming but I made it work and it works very well