Check dependencies#
Make sure these are installed and starting before 0r-safezonecreator:
- ox_lib
- A framework:
es_extended,qb-core, orqbx_core(auto-detected by LTBridge)
Add the resource#
Drop the folder into your server as 0r-safezonecreator. Keep that name — exports and events use it as a prefix.
Update server.cfg#
ensure ox_lib
# your framework
ensure es_extended # or qb-core / qbx_core
ensure 0r-safezonecreator
Set up permissions#
The admin command defaults to /safezonecreator (config/main.lua → command).
Who can open the editor and save zones:
- Framework admin — detected automatically, or
- ACE — default permission is
command.safezone(config/main.lua→ace)
Example for a staff group:
add_ace group.admin command.safezone allow
add_principal identifier.license:YOUR_LICENSE_HERE group.admin
Change ace in config if you use a different permission string, then match it in server.cfg.
Test in-game#
- Join as someone with admin or ACE access.
- Run
/safezonecreator(or your configured command). - Create a test zone, save it, and confirm
data/zones.jsonupdates on the server. - Walk into the polygon — restrictions and notifications should apply.
If the menu does not open, set setup.debug = 1 in config/main.lua, restart the resource, and check the server console.