r_jewelryrobbery Installation
Install r_jewelryrobbery: download it from the Cfx.re Portal, add the items and ensure it after ox_lib and ESX, QBCore or QBX.
Prerequisites
- ox_lib
- ESX, QBCore or QBX
- OneSync
- Game build 2189 or newer for the centre display, the prizes and the back room safe
- Optional: ox_target or qb-target, a dispatch script, lb-phone
Installation Steps
Download & Extract
- Download R_Jewelryrobbery from your Cfx.re Portal
- Extract the folder into your server's
resourcesdirectory - Make sure the folder is named exactly
r_jewelryrobbery
r_jewelryrobbery
assetsthe items for ox_inventory, QBCore and ESX
imagesitem images
- esx_items.sqlESX items
- ox_inventory_items.luaox_inventory items
- qb_items.luaQBCore items
bridgeopen: notify, phone, prompt, bars and custom target
- cl_bridge.luanotify, fence phone
- cl_meters.luaR.Meters = 'custom'
- cl_target.luaR.Target = 'custom'
- cl_textui.luaR.TextUI = 'custom'
client
- cl_custom.luadispatch alerts, who can rob
localesen, fi
server
- sv_custom.luaDiscord webhook, hooks, lb-tablet
shared
- config.luaevery setting
- config_stores.luathe store layout
- fxmanifest.lua
Add the items
Copy the entries from assets/ox_inventory_items.lua into ox_inventory/data/items.lua, and
every image in assets/images/ into ox_inventory/web/images/. On QBCore, copy the lines from
assets/qb_items.lua into qb-core/shared/items.lua. On ESX, run assets/esx_items.sql.
That adds 13 items:
| Item | What it is |
|---|---|
gas_mask | Protects from the gas |
bolt_cutter | Cuts the back room door lock |
glass_cutter | Cuts the centre display |
wedding_ring, pearl_necklace, pocket_watch, diamond_ring, diamond_earrings | Loot from the cases and wall displays |
painting | A painting cut out of its frame |
pink_diamond, ruby_necklace, sinsimito_tequila, panther_statue | The centre display prizes |
Players need a way to get the gas mask, bolt cutter and glass cutter, for example from one of your shops. The BZ gas grenade, the knives and the melee weapons are GTA weapons.
Add to server.cfg
Put it after ox_lib, your framework, inventory and target:
ensure ox_lib
ensure qbx_core
ensure ox_inventory
ensure ox_target
ensure r_jewelryrobberyLanguage (optional, default English):
setr ox:locale "en" # en | fiDiscord logs (optional)
Paste your webhook into WEBHOOK at the top of server/sv_custom.lua, or set
R.Logs.type = 'ox_lib'.
Restart & rob
Restart the server, walk into Vangelico and aim a gun at the staff.
Updates
The console tells you when a new version is out. Download it from the Cfx.re Portal and replace the
folder, keeping your shared/config.lua, shared/config_stores.lua, bridge/,
client/cl_custom.lua, server/sv_custom.lua and locales.
Keep the folder name r_jewelryrobbery and don't change author in fxmanifest.lua, or the update
check stops.