Installation
1. Dependencies
Make sure these are installed and started before the Inside Track:
- Your framework:
qb-core,qbx_coreores_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-coremust be ensured after ox_lib, oxmysql (database), your framework, inventory, target system and your other server scripts such as housing, garages and phone.vns-trackmust be ensured aftervns-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 = falseand pointConfig.Coordsat 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
- Start the server and check the console for errors.
- Give yourself some
casinochipsand walk to the Inside Track chairs - you should see a marker and an E - Play prompt at each chair. - 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.FrameworkFolderandConfig.Inventory. Framework and inventory are detected by vns-core (override them invns-core/config.luaif needed). - No more QBox manifest edits. The
@qbx_core/modules/playerdata.lualines are gone - the samefxmanifest.luaworks on every framework. - Editable files renamed.
server/open_server.luais nowserver/server_open.lua, and there is a newclient/client_open.luafor 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.