Skip to content

Installation ​

Requirements ​

  • FiveM with OneSync enabled.
  • oxmysql connected to MySQL/MariaDB.
  • Preferred framework: es_extended; preferred inventory: np_inventory.
  • Optional: qbx_core, qb-core or standalone; ox_inventory or qb-family inventories.

Install the resource ​

  1. Place the resource in your server resources folder as np_racing.
  2. Run sql/install.sql for a fresh installation. For an existing installation, let resource startup apply the included column/index migrations after detecting the current schema; the fresh-install SQL does not perform upgrades. Startup also creates missing tables. Back up before upgrading. Old paid payout history is preserved; unfinished legacy money records move to reconciliation and require provider-history review through Admin recovery.
  3. Build the NUI in web/:
sh
npm ci
npm run build
  1. Configure shared/config/00_core.lua, 10_race.lua and 20_items.lua.
  2. Start oxmysql, framework/inventory and optional providers before racing:
ini
ensure oxmysql
ensure es_extended
ensure np_inventory
ensure np_admin
ensure np_hud
ensure np_phone
ensure np_mechanic
ensure np_prophandler
ensure np_colshape
ensure np_racing

Remove optional resources you do not run. oxmysql is the only declared hard dependency. Never add ACE grants; see Admin.

Items ​

Definitions live in shared/config/20_items.lua and docs/items.md. The inventory bridge registers them where supported; otherwise copy definitions into your inventory catalog.

Item Weight Purpose
racing_tablet 800 g Racing tablet and optional phone item gate
race_usb 40 g Street event discovery/invite flow
race_flare 120 g Street start flavour; never controls the server countdown
racing_trophy 1,200 g Season top-three award with {seasonId, place} metadata
vehicle_title 80 g Reserved for the vehicle ownership provider

USB and flare definitions route to np_racing.useItem; copy their server export definitions when adding inventory items. QB uses framework usable-item registration. The tablet is currently a phone item gate, without its own usable callback. Verify your inventory's callback argument and consumption behavior in game.

First check ​

Look for np_racing ready and integration status lines. Create a test track and free lobby first, check countdown, checkpoints, finish, leave/disconnect cleanup and optional-resource restarts. Confirm that money and record writes match your configured providers before opening paid events. Pending/failed prize and refund intents retry on login, but a crash between a framework deposit and SQL acknowledgement requires reconciliation. Provide a listener for np_racing:server:dispatch to send street incidents to your dispatch system; np_dispatch itself remains planning-only.