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_zonesThe 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:
- Join with a player that has admin permissions (see
Config.GroupPermissions). - Run the command configured in
Config.Commands.panel(default:/zones) to open the admin panel. - Create a test zone on the map and confirm the blip appears.
- Walk in and out of the zone — the HUD indicator should appear if
Config.enableHudIndicatoristrue. - Check the server console for
[Origen Zones] Loaded X zones..