Tech sheet
bnTruck
Trucking company logistics, MFT enforcement, and cargo fraud risk
Version 1.3.0
Compatible ESXQBCoreQbox
Exports & Events
Client exports
useTruckTablet
Opens the Logistics Tablet.
exports['bnTruck']:useTruckTablet() useMFTItem
Opens the Mobile Fiscal Terminal.
exports['bnTruck']:useMFTItem() Vehicle state bags
| Key | Type | Purpose |
|---|---|---|
bn_has_cargo | boolean | Whether the vehicle is currently tracking cargo |
bn_cargo_weight | number | Current cargo weight |
bn_trailer_plate | string | Normalized trailer plate |
Events
Client-side
truckjob:client:newFineNotification: a fiscal fine was issuedtruckjob:client:cargoLoaded: cargo was loaded at the terminaltruckjob:client:cargoDelivered: delivery completed
Server-side
AddEventHandler('truckjob:server:AppealFine', function(fineId, text)
-- fineId: number, text: string (appeal submitted by a company)
end)
AddEventHandler('truckjob:server:mft:addBolo', function(data)
-- manual BOLO registered by an inspector
end)