Peak Trucking is a premium open-source FiveM trucking resource with persistent driver progression, company trust, daily missions, leaderboards, legal freight, optional illegal cargo, and a React-based NUI dispatch tablet.
- Mission and route selection with truck level requirements
- Company trust points and mission unlocks
- Driver XP, levels, completed jobs, earnings, and recent work history
- Daily mission progress and reset handling
- Leaderboard data stored in SQL
- Optional illegal cargo side job with target system integration (ox_target/qb-target)
- Cancel active jobs from the dispatch UI or with
/canceltrucking - Automatic job cancellation when the required truck, trailer, or attached cargo is destroyed
- Movable Job HUD via
/truckhudcommand with persistence - Framework support for QBCore and ESX (modern and legacy)
- Inventory support for
ox_inventory,qb_inventory,esx_inventory, andqs_inventory - Interaction support for
drawtext,ox_target,qb_target,qb_textui, andesx_textui - Vite React + TypeScript NUI built into
ui/dist
oxmysql- A supported framework: QBCore or ESX
- Optional inventory/interaction resources based on your configuration
If you are using an AI coding assistant (like Claude, ChatGPT, or Cursor), you can set up this resource in seconds:
- Open PROMPT.md.
- Copy the content and paste it into your AI assistant.
- Follow its instructions to automatically configure the framework, inventory, key system, and database for your server.
- Place this folder in your server resources as
peak-trucking. - Import install/install.sql into your database.
- Configure shared/config.lua and server/server-config.lua.
- Ensure dependencies before this resource:
ensure oxmysql
ensure peak-truckingThe source NUI app is in ui. Build it before release:
cd ui
npm install
npm run buildThe FiveM manifest loads ui/dist/index.html. Keep ui/dist in release archives and do not include ui/node_modules.
- shared/config.lua: Framework, SQL driver, inventory, interactions, vehicles, missions, fuel, keys, XP, and gameplay settings.
- shared/language.lua: UI and gameplay text strings.
- server/server-config.lua: Server-only optional settings such as Discord bot token and version checks.
- Added a configurable
/canceltruckingcommand throughConfig.CancelJobCommand. - Improved the existing dispatch UI Cancel Job action so it clears truck, trailer, attached cargo, carried boxes, waypoints, blips, HUD state, and server job sessions.
- Added automatic job cancellation when the active truck, required trailer, or attached cargo is destroyed.
- Cleared server-side illegal cargo sessions when a job is canceled or the player disconnects.
- Do not publish live Discord bot tokens or credentials.
- Keep
ui/distcommitted or packaged for server use. - Do not include
ui/node_modulesin releases. - Review mission coordinates and item names before publishing a server-specific fork.
Contributions are welcome. Please read CONTRIBUTING.md and CODE_OF_CONDUCT.md before opening issues or pull requests.
