This is a simple resource that allows users of a specific group to create mini “RP-Free” zones around them when handling issues, when testing, etc.
When enabling an admin zone, a blip is created on the map, and ONLY SHOWN to users who are currently in the admin zone, to prevent people from gathering around the area. This allows users to see the quickest way to leave the zone to continue RP. Upon leaving the zone, the blip disappears
While in an admin zone, the system prevents any user from shooting, or meleeing and displays a notification when the attempt to shoot or melee.
If a user drives too quickly while in an admin zone, the will be warned to slow down
Upon entering an admin zone, a large text notification is displayed on screen for the entire duration of being in the admin zone. This eliminates any excuse of ignorance, as it is literally right in the user’s face.
Users recieve notifications upon:
- entering a zone
- leaving a zone
- A zone being cleared (if they are in it)
This script is performance optimized. I have coded it in such a way that if there are NO ADMIN ZONES, then there are NO CONSTANT LOOPS. This means that the resource will have NO effect on performance when there are zero admin zones.
Original source: https://forum.cfx.re/t/esx-admin-zones/1963312