Skip to content

Installation

1. Dependencies

Make sure these are installed and started before the Inside Track:

  • Your framework: qb-core, qbx_core or es_extended
  • ox_lib
  • oxmysql
  • vns-core - free and open source, downloaded separately from your Keymaster/cfx Portal (it is not inside the script zip and updates on its own)

vns-core detects your framework, inventory and notification system automatically. The Inside Track has no framework or inventory settings of its own.

2. Resource

Copy the vns-track folder into your resources and start it after vns-core:

ensure qb-core        # or qbx_core / es_extended
ensure ox_lib
ensure oxmysql
ensure vns-core
ensure vns-track

Ensure order

  • vns-core must be ensured after ox_lib, oxmysql (database), your framework, inventory, target system and your other server scripts such as housing, garages and phone.
  • vns-track must be ensured after vns-core.

If vns-core starts too early, VNS scripts can't use your database, items, money or other systems. See Installing vns-core.

3. Casino map

The script does not spawn its own furniture - it looks for the Inside Track chair prop vw_prop_casino_track_chair_01 near the casino position. Your server needs a casino map that includes the Inside Track area.

  • Running the K4MB1 casino map? Leave Config.K4MB1_Casino_Map = true - the position is built in.
  • Any other map: set Config.K4MB1_Casino_Map = false and point Config.Coords at your Inside Track area. The script activates when a player is within 10 m of that position and then scans for the chair props.

4. Chips item

Players bet with an inventory item, casinochips by default (Config.ItemName). Add it to your inventory's item list (for example ox_inventory/data/items.lua, your QBCore/QBox shared items, or the ESX items table). If you already run another VNS casino script you most likely have it.

5. First start

  1. Start the server and check the console for errors.
  2. Give yourself some casinochips and walk to the Inside Track chairs - you should see a marker and an E - Play prompt at each chair.
  3. Sit down, pick a horse, place a bet and let the race run. A win pays out chips automatically.

Encrypted variant

config.lua, client/client_open.lua and server/server_open.lua stay editable in the Encrypted variant - everything on this page and the Configuration page can be changed in both variants.

Updating from the previous version

  • vns-core is now required. Install it and start it before vns-track.
  • Removed options: Config.Framework, Config.FrameworkFolder and Config.Inventory. Framework and inventory are detected by vns-core (override them in vns-core/config.lua if needed).
  • No more QBox manifest edits. The @qbx_core/modules/playerdata.lua lines are gone - the same fxmanifest.lua works on every framework.
  • Editable files renamed. server/open_server.lua is now server/server_open.lua, and there is a new client/client_open.lua for notifications and the 3D prompt. Move any custom changes over.
  • Payouts only for an occupied seat. The server now ignores chip payouts for a track seat that is not in use.