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 two 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 },},
Then copy install/images/*.png to ox_inventory/web/images/.
Using the Lishi pick from the inventory starts lockpicking.
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.' },
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), or "Pick the lock" on the door handle.
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 and minigames/lockpick/config.lua. It's off by default; turn it on only while setting up.
Got a vehicle keys script? Read Hotwiring and keys: with most keys scripts you'll want giveKeys = true.