Use Coupon WELCOME to save 20%

$ USD
  • $ USD
  • € EUR
  • £ GBP
  • $ AUD
  • R$ BRL
  • CHF CHF
  • ¥ JPY
Trucker Job – Free FiveM Job Scripts

Djonza Trucker Job: ESX Setup and Required Security Fixes

Djonza’s Trucker Job is an ESX delivery resource with a mission dashboard and player statistics. We reviewed repository commit 0bc7704, which declares version 1.2. The current code needs server validation fixes before public use; the old installation checklist omitted essential dependencies and database setup.

Creator repository and reviewed code

Dependencies and resource name

The code imports es_extended, ox_lib and oxmysql, and calls ox_target for interactions. Its browser callbacks hardcode d-truckerjob, so the unchanged resource folder must be named d-truckerjob; ensure truckerjob does not match those callbacks. Start the dependencies first, then ensure d-truckerjob. Back up the database and review levels.sql and playerstats.sql before importing: they define trucker_levels and the broadly named player_stats table.

Configure the delivered defaults

The sample mission vehicles are bf400 motorcycles, not a ready truck fleet. Set mission truckModel values, pickup and destination positions, rewards and levels in config.lua. The displayed kilometers are randomly generated between 10 and 100 in the client completion function; they are not measured driving distance. Do not describe payouts as verified distance-based earnings.

Server checks required before launch

The completion handler accepts experience, earnings and kilometers from the client and credits money without validating an active mission, allowed reward, completion location or duplicate submission. The player-data update handler also accepts a supplied identifier and values without an admin permission check. A separate admin check on the read callback does not protect that write handler.

Have a developer make rewards and mission state authoritative on the server, validate bounded numeric inputs and authorize every administrative write. Also address the maximum-level path that writes Max Level text into an integer experience column. Test these fixes with disposable records before enabling public access. No patched resource, gameplay validation or complete security audit is provided here.

Leave a Reply