Troubleshooting
Common issues
Dispatcher won't talk to the player
- Confirm the boss NPC at
Config.BossNPC.coordsexists in-world. The model spawns on resource start. - Verify
ox_targetis running and reachable on the client. - Check the player meets any custom job whitelist you have applied.
Can't take out a truck
- The player must hold the matching CDL license for that truck class.
- The player must be inside the depot interaction zone — taking out a truck is an ox_target action on the depot, not a global command.
- Confirm the truck record exists in
medit8z_trucking_owned_trucksandstored = 1.
License item doesn't appear after passing the test
- The quiz pass and the metadata flag both succeed, but the inventory item requires the items.lua merge from step 2 of Installation.
- Re-merge the entries for
cdl_b_license,cdl_a_license,hazmat_licenseand restartox_inventory.
Item icons missing in inventory
- Copy all PNGs from
medit8z_trucking/images/intoresources/[ox]/ox_inventory/web/images/. - Restart
ox_inventoryso the web bundle reloads.
Freight contracts don't unlock with skills
- Each freight contract's
requiredSkillskeys must matchConfig.Skills[*].nameexactly. The defaults areadr,distance,valuable,fragile,ontime.
Hazmat trailers can't be towed
- The player needs the
hazmatflag set in Qbox player metadata underlicences. Pass the Hazmat Endorsement test, or use/trucking_addxpto level up first.
Database errors on start
- Confirm
oxmysqlis running and the connection string is valid. - Re-upload
medit8z_truckingifsql/trucking.sqlis missing — the loader will logtrucking.sql not found.
Owned truck "lost" after a server crash
- Every start, the script resets
stored = 1on all owned trucks. The truck should reappear in the garage list. If it does not, check for SQL errors in the start log.
Debug commands
Set Config.Debug = true in config.lua to enable:
| Command | Effect |
|---|---|
/trucking_addxp [amount] | Add XP to your trucking stats |
/trucking_addsp [amount] | Add skill points |
/trucking_addmoney [amount] | Add to your trucking balance |
⚠️
Disable Config.Debug on production servers — these commands grant arbitrary progression and currency.
Support
If something is still wrong after the checks above, open a ticket in the Medit8z Discord with:
- Server console output from resource start
- The misbehaving page or action (Quick Job, Freight, CDL test, Garage, Bank, Skills)
- Your
Config.Debugsetting and any customConfig.LicensesorConfig.Skillsedits