[Free] [Open Source] Peak Trucking — A Premium Driver Progression & Dispatch System

Hey everyone!

Since a lot of you really liked the peak-sprays script and appreciated the fact that it was fully open source and clean to work with, I’ve decided to open source another one of my scripts to help the community.

Today I’m sharing Peak Trucking.

This isn’t just a simple “drive from A to B” script. I built this to be a full-featured trucking ecosystem with driver progression, company trust, and a high-quality React-based dispatch tablet. My goal is to provide a premium-tier resource that is actually readable, maintainable, and free for everyone to use or learn from.

:delivery_truck: What is Peak Trucking?

Peak Trucking is a comprehensive trucking job where players can build a career. As they complete missions, they earn XP, level up their driver profile, and build trust with different shipping companies to unlock better-paying routes and specialized cargo.

:sparkles: Key Features

  • Driver Progression: Persistent leveling system. Earn XP to unlock new trucks and missions.
  • Company Trust: Build reputation with different companies to unlock special deliveries.
  • NUI Dispatch Tablet: A modern, beautiful React-based tablet to manage your jobs, check leaderboards, and view your work history.
  • Daily Missions: Keep players coming back with daily goals and bonus XP.
  • Illegal Cargo: Optional “shady” side jobs for players who want to risk it for higher payouts.
  • Framework Agnostic (mostly): Out-of-the-box support for QBCore and ESX (including legacy/modern versions).
  • Clean Code: Written with a focus on standardization (JSDoc, parameterized SQL, and bridge patterns).

:robot: AI-First Setup (The Future!)

Just like peak-sprays, I’ve included a PROMPT.md file. If you use an AI coding assistant (like Claude, ChatGPT, or Cursor), you can just copy-paste that prompt, and it will help you configure the script for your specific server framework and inventory system in seconds.

:hammer_and_wrench: Dependencies

  • oxmysql
  • A supported framework (QBCore, qbox or ESX)

:link: Links

:scroll: License

This project is licensed under the MIT License. You are free to use it, modify it, and learn from it. All I ask is that you keep the “Peak Studios” branding in the files to support the work. I don’t really care tho just give respect lmao..

I hope you guys enjoy this as much as you did the sprays script! Let me know what you think or if you have any cool ideas for updates.

17 Likes

QBcore server/inventory and I am getting this error “ script:peak-trucking] SCRIPT ERROR: @peak-trucking/server/main.lua:26: attempt to call a nil value (global ‘GetCore’) “

Pushed a new update to fix this issue! Thanks for your report.
Changes here

1 Like

# NEW CHANGES

Changes

  • UI Identity: Overhauled the visual style to a premium glass-morphism identity, aligning it with peak-sprays.
  • Bug Fix: Resolved the “black background” issue caused by backdrop-filter in FiveM NUI.
  • New Feature: Added /truckhud command allowing users to reposition the Job HUD on their screen.
  • Persistence: Implemented localStorage persistence for the custom HUD position.
  • Layout Refinement: Cleaned up the HUD layout, improved typography, and optimized color contrast for better readability.

Files Affected

  • ui/src/styles.css
  • ui/src/App.tsx
  • ui/src/components/JobHud.tsx
  • client/main.lua
  • README.md
  • version.json
1 Like

New Changes Here

Changes

  • Fixed HUD getting stuck after saving position. Added support for ox_fuel in HUD monitoring.

Files Affected

  • shared/config.lua, client/main.lua, ui/src/App.tsx

Documentation here: Peak RP

Any plans on adding the ability to use owned trucks for jobs? Great script so far.

Edit just updated to the latest version and getting these errors:

`Error parsing script @peak-trucking/client/main.lua in resource peak-trucking: @peak-trucking/client/main.lua:888: expected near ‘end’
Uncaught (in promise)
SyntaxError: Unexpected end of JSON input (@peak-trucking/ui/dist/index.html:1)`

1 Like

Should be fixed. I’m not sure if you’re in the discord or not but I have automated changelogs after any update or fix, you can check from there

1 Like

The script is always open for contributions! And I will review them regularly if I can!

There are already some PRs that got merged so welcome anytime!

Always open for suggestions too.

Is there a way to cancel a job you have begun? I also tested destroying my cargo which didnt cancel my job and I had to restart my game to fix that situation, other than that great script!

2 Likes

Hello, I am really sorry for my very late response. You can cancel a job using the /canceltrucking command and I have just updated the script so that you can cancel it from the job UI as well as destroying cargo/trailer/truck or submerging in water automatically cancels the active job and notifies the player.