FiveM Admin Zone
A very basic script that administrators can use for staff tasks like setting up admin areas. As a result, other players are aware of the staff issue.
📁 File: config.lua
config.lua
Full Example:
🔔 What It Does
Displays a warning message on screen when a player is near an active staff situation or zone.
Uses either framework-based permissions or ACE permissions to allow staff to manage these zones.
Supports radius configuration to define how close a player can get before receiving the alert.
🧾 Configuration Breakdown
🧨 config.message
config.message
This is the message displayed to players who enter the restricted zone.
You can use in-game color codes (e.g.,
~r~
for red,~b~
for blue).
🧭 config.text
config.text
Sets the screen coordinates for the warning message:
x
: Horizontal position (0.0 left to 1.0 right)y
: Vertical position (0.0 top to 1.0 bottom)
📏 config.defaultRadius
& config.maxRadius
config.defaultRadius
& config.maxRadius
Defines the distance (in meters) around the staff zone where the warning becomes active.
The system may allow setting custom radii on a per-zone basis, up to
maxRadius
.
🔐 Permissions Setup
You can control who can create or manage these zones using either a framework or ACE permissions.
✅ Framework Mode
useFramework: Enables permission checking through your framework.
frameworkName: Name of the framework resource (e.g.,
"framework"
).departmentLevel: Key used to identify admins (e.g., check if
PlayerData.dept == "admin"
or similar department in your framework).
🔒 ACE Permissions Mode
If your server doesn’t use a framework or you prefer ACE-based permissions:
To grant access:
In your server.cfg
, add:
✅ Summary
message
The warning shown to players
text
Where the message appears on screen
defaultRadius
Default warning zone size
maxRadius
Max limit for warning zones
perms
Handles who can create/manage zones (framework or ACE)
Last updated
Was this helpful?