OrigenNetwork
Docs

Installation · origen_zones

server.cfg

Add the resource to your server.cfg. Make sure ox_lib and oxmysql are started before origen_zones.

cfg
ensure ox_lib
ensure oxmysql
ensure origen_zones

The framework core (qb-core, qbx_core, or es_extended) must also be running before origen_zones.


SQL

origen_zones automatically creates and verifies the table structure on every server start. If the table does not exist, it is created from database.sql. If the table is missing columns, they are added automatically.

You can also run the SQL manually:

sql
CREATE TABLE `origen_zones` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL,
  `label` varchar(50) NOT NULL,
  `type` varchar(20) NOT NULL DEFAULT 'safezone',
  `points` longtext NOT NULL,
  `options` longtext NOT NULL,
  `center_z` float NOT NULL DEFAULT 0,
  `height` float NOT NULL DEFAULT 200,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

No items required

This resource does not add or require any inventory items.


Verify installation

After starting the server:

  1. Join with a player that has admin permissions (see Config.GroupPermissions).
  2. Run the command configured in Config.Commands.panel (default: /zones) to open the admin panel.
  3. Create a test zone on the map and confirm the blip appears.
  4. Walk in and out of the zone — the HUD indicator should appear if Config.enableHudIndicator is true.
  5. Check the server console for [Origen Zones] Loaded X zones..