crg-safezone
🛡️ Safezone System
A lightweight and fully configurable Safezone System for FiveM servers. This script creates designated safe areas where players receive protection and clear on-screen feedback when they enter or exit a zone.
📁 Files
This script includes two primary configuration files:
main.lua (Config) — Safezone definitions (positions, radius, blips, subtitles)
localization.lua — All text displayed to players
🌍 Localization
These are the localization strings used by the system: localization
msg_subtitle
You're in a safezone
This subtitle appears on screen whenever a player enters a configured safezone (if subtitles are enabled).
⚙️ Main Configuration
Below is the configuration structure that defines all safezones, their positions, and behavior: main
Safezone Structure
Each safezone consists of:
pos → Center position of the safezone
radius → Size of the safe area
blip → Whether to show the location on the map
subtitle → Whether to show the on-screen “You’re in a safezone” message
Default Safezones Included
1️⃣ Motel Safezone
Position
324.21, -209.68, 54.09
Radius
100.0
Blip
Enabled
Subtitle
Enabled
A large safety area around the motel region offering full protection with visual map guidance.
2️⃣ Car Dealer Safezone
Position
-56.82, -1104.58, 26.44
Radius
75.0
Blip
Enabled
Subtitle
Enabled
A medium-sized safezone suitable for dealership areas and high-traffic market zones.
🛰️ How It Works
✔ Players entering a defined safezone automatically receive protection ✔ Subtitle text (“You're in a safezone”) appears if enabled ✔ A blip is shown on the map if configured ✔ Zones are always active and require no manual activation ✔ Multiple safezones can be added without limits
➕ Adding New Safezones
To add new safezones, simply duplicate and edit the following template inside Config.SafeZones:
You can create unlimited safezones with unique sizes, messages, and map blips.
Last updated