Safezone Creator — 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. Admin Permissions Setup
Grant access to the /safezonemenu command to your server administrators in server.cfg:
lua
# Grant permission to your admin group:
add_ace group.admin "safezone.admin" allow
# Or grant directly to a specific player license:
add_ace identifier.license:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "safezone.admin" allow2. Install Steps
- Create a category folder named
[fs]inside your server'sresources/directory (resources/[fs]/). - Download and place
fs_safezonecreatorintoresources/[fs]/fs_safezonecreator. - 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
/safezonemenuin-game to start creating and managing safezones live.
