Guardian Safe Zones - Installation

Guardian Safe Zones is a lightweight, standalone FiveM script that allows you to create and manage protected areas using a simple config and an in-game menu.

No framework required.


Installation

  1. Place the guardian_safezones folder into your resources directory

  2. Add the resource to your server.cfg:

    ensure guardian_safezones
  3. Restart your server


Configuration

📁 config.lua

This is the only file you need to set up.


Command & Permissions

Config = {}

Config.CommandName = "safezonemenu"
Config.AcePermission = "guardian.zonemanager"

CommandName The command used to open the Safe Zone management menu.

AcePermission The ACE permission required to manage safe zones.

Example:


Message Settings

  • Message shown when entering a safe zone

  • Message shown when leaving a safe zone

  • Supports GTA color codes


Safe Zones

Safe zones are defined inside the Config.Zones table.

Zone Options

Option
Description

name

Display name of the zone

coords

Center point of the zone

size

Radius of the safe zone (meters)

showBlip

Show or hide the map blip


In-Game Menu

Guardian Safe Zones includes a custom in-game menu that allows authorized users to:

  • Add safe zones

  • Remove safe zones

  • Edit zone size and location

  • Toggle blips

Open the menu with:

(Or the command name you set in the config)


Notes

  • Standalone (no ESX / QBCore)

  • Optimized and performance friendly

  • Ideal for:

    • Police Departments

    • Hospitals

    • Spawn Areas

    • Roleplay Hubs

Last updated