Trap Phone v1 — Installation
Dependencies
| Resource | Required | Notes |
|---|---|---|
ox_lib | Yes | Shared UI / callbacks |
ESX, QBCore, or Qbox | Yes | One framework per server |
Dispatch / alert jobs
| Job name | Notes |
|---|---|
police | Must match your framework job name exactly |
sheriff | Must match your framework job name exactly |
statepolice | Must 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
- Place
fs_trapphone_v1inresources/[fs]/. - Install dependencies listed below (Bridge,
ox_lib, etc.). - Complete Items & inventory setup from
[INSTALL_ME_FIRST]. - Configure
fs_trapphone_v1/config/before first start. - Add to
server.cfg(afterfs_bridgewhen Bridge is required):
lua
ensure fs_bridge
ensure fs_trapphone_v1- Restart the server and check the console for errors.
