GCMod

Installation

Setup steps, ensure order, and startup validation for gcm_securezone.


Requirements

  • FiveM server with OneSync enabled.
  • ox_lib.
  • oxmysql.
  • One framework started: qbx_core, qb-core, or es_extended.

1. Add the resource

Place the folder as:

text
resources/[gcm]/gcm_secureZone

2. Import database

Run database.sql in your server database:

sql
CREATE TABLE `gcm_securezone` (
  `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,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
);

3. Ensure order in server.cfg

cfg
ensure ox_lib
ensure oxmysql
ensure qb-core       # or qbx_core / es_extended
ensure gcm_secureZone

4. Configure

Edit:

  • sh_config.lua
  • custom/server.lua (staff checks and whitelist behavior)

5. Verify startup

After restart:

  • No SQL or dependency errors in console.
  • /securezone opens panel for staff accounts.
  • Existing zones load and render on clients.