Tranquilizer — Installation
Dependencies
| Resource | Required | Notes |
|---|---|---|
oxmysql | Yes | MySQL async library for database queries |
ESX, QBCore, or Qbox | Yes | Free open-source framework — requires one of them on your server |
1. Items & Inventory Setup
Open fs_tranquilizer/[INSTALL_ME_FIRST]/items/ and use the file corresponding to your inventory system to add the tranquilizer dart item and image.
2. Admin Permissions Setup
Grant access to /fs_tranquilizer in your server.cfg:
lua
# Admin group permission
add_ace group.admin "fs_tranquilizer.admin" allow
# Or specific player license
add_ace identifier.license:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "fs_tranquilizer.admin" allow3. Install Steps
- Create a category folder named
[fs]inside your server'sresources/directory (resources/[fs]/). - Download and place
fs_tranquilizerintoresources/[fs]/fs_tranquilizer. - 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_tranquilizerin-game to configure sedation durations and hospital beds.
