Skip to content

Installation

Install Cuxial Safezones step by step: dependencies, permissions and start order.

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_lib
  • oxmysql
  • cuxial_bridge 2.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.

server.cfg
cfg
add_ace group.admin admin allow
add_ace group.admin command.crearzona allow

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

Set the language ​

Optional. en and es are included.

server.cfg
cfg
setr ox:locale "en"

Start the resource ​

Start it after its dependencies and after your framework:

server.cfg
cfg
ensure ox_lib
ensure oxmysql
# your framework here (qbx_core, qb-core or es_extended)
ensure cuxial_bridge
# optional
ensure ox_inventory
ensure cuxial_safezones

No 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 ​

  1. Join the server with a staff account and type /crearzona. The panel opens.
  2. Go to Create, give the zone a name of at least 4 characters and confirm.
  3. Mark three or more vertices with the left mouse button and press Enter.
  4. Walk into the zone. You become invincible and the sign shows up if you enabled it.

Next: adjust the rules in Configuration.

© Cuxial