Trap Phone v2 — Installation
Dependencies
| Resource | Required | Notes |
|---|---|---|
oxmysql | Yes | MySQL async library for database operations |
ESX, QBCore, or Qbox | Yes | Free open-source framework — requires one of them on your server |
1. Items & Inventory Setup
fs_trapphone_v2 provides pre-configured item definitions and high-resolution icons for all major inventories:
| Inventory | Status | Setup Folder |
|---|---|---|
ox_inventory | Officially Supported | install_me_first/ox_inventory/ |
qb-inventory | Officially Supported | install_me_first/qb-core/ |
qs-inventory (Quasar) | Officially Supported | install_me_first/qs_inventory/ |
ps-inventory | Officially Supported | install_me_first/qb-core/ |
lj-inventory | Officially Supported | install_me_first/qb-core/ |
ak47_inventory | Officially Supported | install_me_first/ |
codem-inventory (m-Inventory) | Officially Supported | install_me_first/ |
pappu-inventorynp (NoPixel) | Officially Supported | install_me_first/ |
esx_default | Officially Supported | install_me_first/esx_default/ |
Custom Inventory | Supported | bridge/inventory/custom/ |
Open fs_trapphone_v2/install_me_first/ and add the trap phone item definitions and images corresponding to your inventory system.
2. Admin Permissions Setup
Grant access to the live in-game NUI config editor (/fs_trapphone) in your server.cfg:
lua
# Grant permission to your admin group:
add_ace group.admin "fs_trapphone_v2.admin" allow
# Or grant directly to a specific player license:
add_ace identifier.license:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "fs_trapphone_v2.admin" allow3. Install Steps
- Create a category folder named
[fs]inside your server'sresources/directory (resources/[fs]/). - Download and place
fs_trapphone_v2intoresources/[fs]/fs_trapphone_v2. - Complete Items & Inventory Setup from
install_me_first. - Add the ACE permission to your
server.cfg. - Add the resources to your
server.cfgat the end of your ensured resources:
lua
ensure oxmysql
-- make sure to ensure all resources above this to make it work properly
ensure [fs] -- ensure it as last resource- Restart your FiveM server. Database tables will automatically initialize on first startup.
- Run
/fs_trapphonein-game with admin permissions to configure apps, items, and drop tables in the live NUI editor.
