The most advanced open-source safezone system for FiveM.
Drop it in, ensure, and play. No config needed, no SQL, no Keymaster.
cd resources/[f5]
git clone https://github.com/F5-Studio-FiveM/f5_safezones.gitAdd to server.cfg:
ensure qb-core # or qbx_core / es_extended
ensure f5_safezonesThat's it. The default Legion Square safezone is ready. Open
/szadminin-game to manage zones.
| Zone Types | Circle • Polygon |
| Markers | Cylinder • Circle Fat • Circle Skinny • Circle Arrow • Split Arrow • Dome |
| Animations | Pulsing • Bobbing • Rotating • Color Shift |
| Protection | Invincibility • Ghosting • Explosion Cancel • Weapon Block • Vehicle Damage Block |
| Frameworks | QBCore • QBox Core • ESX (auto-detected via bridge) |
| Storage | JSON files, no database required |
| Logging | NDJSON audit logs with retention and admin tracking |
| Requirements | Server Build 4752+ • Game Build 2189+ • Lua 5.4 |
Available Exports
Client
exports['f5_safezones']:IsPlayerInSafezone()
exports['f5_safezones']:GetCurrentSafezone()
exports['f5_safezones']:GetAllZones()
exports['f5_safezones']:IsPlayerInGhostMode()
exports['f5_safezones']:GetPlayersInCurrentZone()Server
exports['f5_safezones']:IsPlayerInSafezone(source)
exports['f5_safezones']:GetPlayerSafezoneInfo(source)
exports['f5_safezones']:GetAllPlayersInSafezones()
exports['f5_safezones']:GetAllSafezones()
exports['f5_safezones']:GetPlayersInSpecificZone(zoneName)Admin Commands
| Command | Description |
|---|---|
/szadmin |
Open the admin panel |
/szdebug |
Toggle debug visualization |
/szcoords |
Copy current coordinates |
/sztoggle <zone> |
Toggle marker visibility |
/listsafezones |
List all zones in console |
This project is open source and we'd love your help to make it better.
- Report bugs by opening an issue
- Suggest features or improvements via issues or Discord
- Submit pull requests with bug fixes, new features, or optimizations
- Add translations by creating a new locale file in the
locales/folder - Share the project by starring the repo and spreading the word
