Truck Driver Job Script — Fully Configurable & Optimized
This highly optimized script introduces a complete truck delivery job system designed for ESX servers using ox_lib
and ox_target
. Players can spawn trucks and trailers, load and deliver packages to multiple destinations, and earn money based on their performance — all while enjoying a smooth, lag-free experience.
Features Overview
Smart Logic
- Players start the job via a targetable NPC using
ox_target
. - All job logic — from truck spawning, loading, delivery, unloading, rewards, notifications, and clothing — is controlled entirely via the
config.lua
. - The job automatically ends after a set number of deliveries (
Config.MaxJob
), and players must restart the job to continue.
Reward System
- Payout per package is configurable:
Config.MoneyReward
. - Final reward = MoneyReward × number of delivered packages.
- Server callback handles payouts after all deliveries are completed.
Dependencies
This script requires:
- ox_lib
- ox_target
Optimization
- Script uses efficient loops, entity caching, and deferred loading.
- ox_target is used for low-impact, context-aware interactions.
- No performance overhead — the script is ideal for both low and high-population servers.
Summary
The Truck Driver Job script is:
- Fully modular and configurable
- Optimized for performance
- Easy to set up with
ox_lib
andox_target
- Roleplay-friendly with animations, props, and uniforms
- Scalable — add as many delivery zones and spawn points as you want
- Suitable for both job-restricted and free-for-all servers
Job Images
Job Interactions:
Spawn Truck & Trailer:
Tacking packages:
Prop + Animation:
Load package into trailer:
One of location to deliver packages:
Unloading Trailer:
Droping package:
Config images
Preview Video
## Download link:
Join Our Community
Need help or want to stay updated? Join our official Discord: