Compatibility and sibling change requests ​
All np_* integrations are optional. The adapters use GetResourceState and protected export calls. Without them the logistics board, framework bridge, SQL data, and local gameplay paths stay available.
| Stack | Status | Behavior |
|---|---|---|
| ESX + oxmysql | Primary | Framework bank debit/credit and SQL-backed escrow ledger. |
| qbx / qb-core | Fallback | Online bank debit/credit and player identity use the framework bridge. |
| np_inventory | Primary | Cargo stashes, item checks and stock delivery. |
| ox_inventory | Fallback | Stash support; install definitions from item catalogue. |
| np_jobs / np_minijobs | Optional | Feature-pack host and public light-contract board. |
| np_banking | Preferred escrow | Real CreateAccount, GetAccounts, GetPersonalAccount, Transfer, ListAccounts, GetAccount, and Credit exports. Without it, player posting debits framework bank funds; payout/refund credits online players and keeps offline credits pending in logistics_payouts, with unique references and login retries. |
| Other np_* | Optional | See Integrations for actual exports/events and current fallbacks. |
Sibling change requests ​
np_phone ​
- Add
registerJobCenterEntry(resourceId, def)with owner cleanup and restart re-attach; expecteddef = { id, label, icon, list(src), start(src,id) }. - Add
registerGroupJob(resourceId, def)if groups need resource-owned job catalogs; expecteddef = { id, label, icon, stages, start(groupId,members,params), cancel(groupId,reason) }. CurrentgroupStartJob(gid, job)starts a job but does not register it. - A native Freight app requires an app-owned
web/dist/phone.htmlusing the np_phone SDK;registerStoreApprequires that app UI and this checkout has no phone UI page.
np_dispatch ​
Implement the documented publish(alert) server export, plus update(id, fields) and close(id, disposition?) for tracker pings/holds. Accept { type, channel, priority, title, coords, track={netId}, data, sourceResource }, with inline types or logistics.inspection, logistics.seal_broken, and logistics.cargo_stolen types.
np_crime ​
Implement addHook('beforeHijack', fn)/cargoStolen consumption or add registerCargoHook(name, fn). Provide {src,vehicle,netId,metadata} to the veto callback; false, code vetoes a hijack. A fencing export should accept {contractId,cargo,sourceCid} and validate all values server-side.
np_banking ​
Escrow uses a dedicated personal account owned by np_logistics:escrow. Payout/refund settlement uses unique references in logistics_payouts, retries pending credits at login and checks banking transaction references before replaying a settlement. Framework processing rows after a crash require manual reconciliation.
np_payments / np_legal ​
np_payments:Invoice(target, opts) is wired with a default freight merchant. Inspection identifies the driver of an occupied freight vehicle and requests an invoice for a positive fine when np_payments is available. Provide opts.payee for a configured city/legal collection destination; the automatic request currently omits a payee. Ground or unoccupied cargo may have no identifiable driver, so its fine is recorded without an automatic invoice. np_legal still needs a public citation export accepting party, amount, statute/code, evidence and issuing resource for legal-case integration.
np_vehiclekeys / np_garages ​
np_vehiclekeys: implementGiveKey(src, vehicleOrNetId, opts?) -> true | false, code; authorize only a server-approved rig assignment.np_garages: implementRegisterExternalGarage(id, def)andStoreExternalVehicle(src, vehicleOrNetId, garageId, metadata?) -> true | false, code, preserving owner, plate, properties and server authorization. Current checkouts have no code/API implementation.
np_vending ​
Add RestockFromLogistics(machineId, item, count, orderId) -> true | false, code. Validate machine/item/capacity, dedupe orderId, mutate stock atomically, then fire existing np_vending:server:restocked. The current event is output-only and cannot restock a machine.
np_farming ​
Add optional haul = { from, to, budget, cargo? } to PostContract(spec) and fire np_farming:server:contractPosted({ contract, poster, stash, item, count, reward, haul }). With haul=true, defer final stock delivery to np_farming:business; current contractCompleted fires after farming has already completed the delivery.
np_fishing ​
GetFishOrders already returns deliverTo when supplied to CreateFishOrder, so addressed orders import now. Add CompleteFishOrder(id, logisticsContractId) -> true | false, code to atomically close the source order and suppress its own payout after logistics has delivered and paid the carrier. Logistics rolls back the receiver inventory update if that export is missing/fails. For restart-safe handoff add handoffOrder(id, resource, logisticsOrderId) or an orderClaimed event so the same fish order cannot be claimed twice across resources.
np_dealership ​
Implement planned CreateOrder(dealerId, importerId, lines, opts?) -> orderId | nil, code; opts must carry destination, payer/budget and order metadata. Emit np_dealership:server:orderCreated({id,dealer,from,to,lines,budget,payer}). Implement planned CompleteDelivery(jobId, report) -> payout | false, code, where the report identifies VIN/stock ids, carrier, contract and damage. Current checkout is docs/mockups only; logistics sink fails safely until exports exist.
np_commerce ​
np_commerce-impl currently calls order(venueId, lines), createCourierLeg(contract), and registerSink('np_commerce', callback). Logistics accepts those compatibility shapes. Funded orders should migrate to order({sink='np_commerce',from,to,cargo,payer,budget,meta}); include venue/stash/item/count and dedupe by logistics order id before applying stock.
np_fuel ​
Current CreateOrder(stationId,fuel,litres,opts) creates internal fuel orders; GetOrders only gives logistics a startup snapshot. Emit np_fuel:server:supplyOrderCreated({id,station,fuel,litres,payout,payer}), or call exports.np_logistics:order({sink='np_fuel:station',from=depot,to=stationId,kind='tanker',cargo={fuel=...,litres=...},payer=...,budget=...}) from CreateOrder. Include an owner/handoff id to prevent import and event double-posting.
np_manufacturing / np_utilities / np_transport / np_police ​
These checkouts have no compatible freight handoff or competing inspection API. Add a server-side order call using common shape {sink,from,to,cargo,payer,budget,meta}. For police, expose inspectFreight(src, unitIds, result) or defer freight inspection to logistics to prevent duplicate systems. np_transport should use the shared np_jobs feature pack and leave freight contracts to logistics.
Current limits ​
- Without np_banking, player posting debits framework bank first; online payout/refund credits framework bank. Offline settlements are pending
logistics_payoutsrows with login retries. A crashed framework credit left inprocessingrequires manual reconciliation. - Inspection can request a fine invoice for an identified driver with np_payments. Unidentified drivers and missing payment APIs leave the fine as a record; routing collection to a city/legal payee needs configuration.
- The client gameplay layer owns HUD/menu interactions. See the client-helper calls in Integrations.
- Logistics rigs use server
CreateVehicleServerSetterandEntity(vehicle).state.npLogistics; trailer persistence and external garage storage await the APIs above.
Implementation notes above reflect the checked-in adapters. Live FiveM verification remains outstanding.