Get Vehicle Minigames running on your server: the start order, the three items, and what to check before going live.
On this page
Download it
Get the latest release from GitHub (tr_minigames.zip) and unzip it.
Put it in your resources
Put the folder in your server's resources folder, named exactly tr_minigames.
Start it after tr_core
server.cfg
ensure tr_coreensure tr_minigames
Add the three items
The item entries and their pictures are in the resource's install folder. Pick your inventory:
Paste these into ox_inventory/data/items.lua, inside the returned table:
ox_inventory/data/items.lua
['wire_strippers'] = { label = 'Wire Strippers', weight = 250, stack = false, description = 'For when you lost your keys. Or someone else did.',},['lishi_pick'] = { label = 'Lishi Pick', weight = 150, stack = false, description = 'A 2-in-1 pick and decoder for car door locks. Light hands.', client = { export = 'tr_minigames.lockpick', -- "Use" in the inventory starts lockpicking },},['siphon_hose'] = { label = 'Siphon Hose', weight = 400, stack = false, description = 'Two clear hoses and a fuel funnel. Tastes like unleaded.', client = { export = 'tr_minigames.siphon', -- "Use" in the inventory starts siphoning at the car you stand at },},
Then copy install/images/*.png to ox_inventory/web/images/.
Using the Lishi pick or the siphon hose from the inventory starts lockpicking or siphoning.
Paste these into qb-core/shared/items.lua, inside QBShared.Items:
qb-core/shared/items.lua
wire_strippers = { name = 'wire_strippers', label = 'Wire Strippers', weight = 250, type = 'item', image = 'wire_strippers.png', unique = true, useable = false, shouldClose = true, description = 'For when you lost your keys. Or someone else did.' },lishi_pick = { name = 'lishi_pick', label = 'Lishi Pick', weight = 150, type = 'item', image = 'lishi_pick.png', unique = true, useable = false, shouldClose = true, description = 'A 2-in-1 pick and decoder for car door locks. Light hands.' },siphon_hose = { name = 'siphon_hose', label = 'Siphon Hose', weight = 400, type = 'item', image = 'siphon_hose.png', unique = true, useable = false, shouldClose = true, description = 'Two clear hoses and a fuel funnel. Tastes like unleaded.' },
Then copy install/images/*.png to qb-inventory/html/images/.
With qb-inventory the items can't be used from the inventory: players start the minigames with G (or /hotwire, /lockpick), /siphon, or "Pick the lock" and "Siphon fuel" with ox_target or qb-target.
Restart the server
Your inventory reads its items when the server starts, so restart the whole server, not only the resource.
Before going live
Turn devMode off in minigames/hotwire/config.lua, minigames/lockpick/config.lua and minigames/siphon/config.lua. It's off by default; turn it on only while setting up.
Got a vehicle keys script? The line tr_core prints when the server starts should name it (keys: qbx_vehiclekeys): the hotwire gives keys through it. See Hotwiring and keys.
Police alerts go to the police job through your dispatch script. Check who gets them, and how often, in Police alerts.