Skip to content

Safezone Creator — Installation ​

Dependencies ​

ResourceRequiredNotes
oxmysqlYesMySQL async library for database queries
ESX, QBCore, or QboxYesFree 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" allow

2. Install Steps ​

  1. Create a category folder named [fs] inside your server's resources/ directory (resources/[fs]/).
  2. Download and place fs_safezonecreator into resources/[fs]/fs_safezonecreator.
  3. Add the ACE permission to your server.cfg.
  4. Add the resources to your server.cfg at 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
  1. Restart your FiveM server. Database tables will automatically initialize on first startup.
  2. Run /safezonemenu in-game to start creating and managing safezones live.

FWB Studio documentation.