Vehicle MinigamesInstallation

Installation

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_core
ensure 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.

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.
  • Addon cars need the lock fitted to their doors and the filler to their flank once. See Fitting locks to cars and Fitting fillers to cars.
  • Siphoning needs GTA's jerry can (WEAPON_PETROLCAN) in the player's inventory, with room in it. ox_inventory and qb-core have it already.
Was this page helpful?

Still stuck? Open a ticket on Discord.Privacy