Skip to content

Trap Phone v1 — Installation ​

Dependencies ​

ResourceRequiredNotes
ox_libYesShared UI / callbacks
ESX, QBCore, or QboxYesOne framework per server

Dispatch / alert jobs ​

Job nameNotes
policeMust match your framework job name exactly
sheriffMust match your framework job name exactly
statepoliceMust match your framework job name exactly

Items & inventory setup ​

Open fs_trapphone_v1/[INSTALL_ME_FIRST] and use the block for your inventory system.

ox_inventory

Copy item/weapon images into ox_inventory/web/images/.

ox_inventory.lua

lua
['fs_trapphone'] = {
    label = 'Trap Phone',
    weight = 1,
    stack = true,
    close = true,
    description = 'Secure Phone for Drug sell',
},
qs-inventory

Copy item/weapon images into qs-inventory/html/images/.

qs_inventory.lua

lua
['fs_trapphone'] = {
    ['name'] = 'fs_trapphone',
    ['label'] = 'Trap Phone',
    ['weight'] = 1,
    ['type'] = 'item',
    ['image'] = 'fs_trapphone.png',
    ['unique'] = false,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'Secure Phone for Drug sell',
},
Item images

Image: fs_trapphone.png — place in the path above.

Other install files
  • qb_core_items.lua

Install steps ​

  1. Place fs_trapphone_v1 in resources/[fs]/.
  2. Install dependencies listed below (Bridge, ox_lib, etc.).
  3. Complete Items & inventory setup from [INSTALL_ME_FIRST].
  4. Configure fs_trapphone_v1/config/ before first start.
  5. Add to server.cfg (after fs_bridge when Bridge is required):
lua
ensure fs_bridge
ensure fs_trapphone_v1
  1. Restart the server and check the console for errors.

FWB Studio documentation.