Skip to content

Installation ​

Requirements ​

  • FiveM server with oxmysql and its configured database.
  • ESX, Qbox or QB-Core for framework accounts and jobs; standalone identifier/money fallback is available.
  • Node.js and npm to build the React NUI from source.
  • Optional: np_jobs, np_inventory or ox_inventory, np_payments, np_phone, np_faction, np_admin and np_npchandler.

Setup ​

  1. Put the resource in a folder named np_transport.
  2. Run cd web && npm ci && npm run build. The manifest loads web/dist/index.html; source files alone are insufficient.
  3. Configure shared/config.lua, the files in shared/config/, and config/fallback_jobs.lua when np_jobs is absent.
  4. Start oxmysql and your framework before np_transport. Start optional integrations before transport when possible.
cfg
ensure oxmysql
ensure es_extended
# Optional installed resources: np_inventory, np_payments, np_jobs,
# np_phone, np_faction, np_admin, np_npchandler
ensure np_transport

Startup applies versioned SQL migrations when Config.Transport.autoMigrate is true (the default). For a fresh database with automatic migrations disabled, import sql/install.sql and sql/migrations/002_phase_b.sql. For a legacy database, leave automatic migrations enabled during upgrade: the Lua runner checks existing columns and applies the ticket refund/payment, charter lifecycle, departure-update, ferry-schema and persistent refund upgrades. The numbered SQL file alone is not a complete legacy upgrade path. Back up existing data before upgrading. Check the server log for database migration failures and the ready message containing the selected framework and inventory.

Before opening to players ​

Use two FiveM clients to test an assigned ride, pickup, meter, payment and rating. Test feature revocation/duty changes, insufficient funds, ticket expiry, route stops and resource restart. Check optional integrations on your actual resource versions. This documentation does not claim these multiplayer checks have been completed.

Development checks ​

sh
lua5.4 tests/run.lua
selene bridge integrations server client shared config
cd web
CONTRACT_STRICT_LUA=1 node scripts/check-contract.mjs
npm test
npm run build