Cuxial Safezones needs no SQL import and no inventory items. It creates its own table on first start.
Check the dependencies
These resources must be installed and working first:
ox_liboxmysqlcuxial_bridge2.24.1 or later, with one of the supported frameworks: QBox, QBCore or ESX. See Cuxial Bridge.
ox_inventory is optional. It is what enforces the "weapons not allowed" rule of a zone. Without it, block the attack, aim and shoot controls in the zone instead.
Copy the resource
Place the cuxial_safezones folder inside your resources directory. Keep the folder name as it is.
Give the permissions
Managing zones needs two ACE permissions: admin, checked every time a zone is saved, and command.crearzona, needed to run the command.
add_ace group.admin admin allow
add_ace group.admin command.crearzona allowReplace group.admin with the group your staff belongs to. If you change command.name or command.ace in the config, use the new names in these lines.
Start the resource
Start it after its dependencies and after your framework:
ensure ox_lib
ensure oxmysql
# your framework here (qbx_core, qb-core or es_extended)
ensure cuxial_bridge
# optional
ensure ox_inventory
ensure cuxial_safezonesNo SQL to run. The resource creates the table cuxial_safezones when it starts and prints [cuxial_safezones][mysql] tabla lista in the server console.
Coming from an earlier version that used the table cuxialsz? Its zones are copied to the new table on the first start, as long as the new table is empty. The old table is not deleted.
Check that it works
- Join the server with a staff account and type
/crearzona. The panel opens. - Go to Create, give the zone a name of at least 4 characters and confirm.
- Mark three or more vertices with the left mouse button and press Enter.
- Walk into the zone. You become invincible and the sign shows up if you enabled it.
Next: adjust the rules in Configuration.
