Home › Documentation › Installation · origen_zones
Add the resource to your server.cfg. Make sure ox_lib and oxmysql are started before origen_zones.
ensure ox_lib
ensure oxmysql
ensure origen_zonesThe framework core (qb-core, qbx_core, or es_extended) must also be running before origen_zones.
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:
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;This resource does not add or require any inventory items.
After starting the server:
Config.GroupPermissions).Config.Commands.panel (default: /zones) to open the admin panel.Config.enableHudIndicator is true.[Origen Zones] Loaded X zones..