For the complete documentation index, see llms.txt. This page is also available as Markdown.

Installation

Dependencies, server.cfg order, ACE permissions, and a quick test.

1

Check dependencies

Make sure these are installed and starting before 0r-safezonecreator:

  • ox_lib

  • A framework: es_extended, qb-core, or qbx_core (auto-detected by LTBridge)

2

Add the resource

Drop the folder into your server as 0r-safezonecreator. Keep that name — exports and events use it as a prefix.

3

Update server.cfg

ensure ox_lib

# your framework
ensure es_extended      # or qb-core / qbx_core

ensure 0r-safezonecreator
4

Set up permissions

The admin command defaults to /safezonecreator (config/main.luacommand).

Who can open the editor and save zones:

  1. Framework admin — detected automatically, or

  2. ACE — default permission is command.safezone (config/main.luaace)

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.

5

Test in-game

  1. Join as someone with admin or ACE access.

  2. Run /safezonecreator (or your configured command).

  3. Create a test zone, save it, and confirm data/zones.json updates on the server.

  4. 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.

6

Back up zone data

All zones are stored in data/zones.json. The file starts as {} and grows as you create zones. Back it up before major edits or server migrations — see FAQ if saves fail.

Last updated