Hello FiveM Community.
An enhanced version of a SafeZone possible to have a zone with different shapes with PolyZone script
Features
- Can have zones with different shapes
- Can whitelist job with minimum rank per zones
- Can combo zones
- Don’t use any helper for PolyZone
- Standalone it doesn’t use any function from anywhere
- Can set job and grade with export if you are not using es_extended
- Optimize and get low usage (0.01 ~ 0.02 on idle if you don’t turn any debug on)
- Clean coding
Resource preview
Requirements
- PolyZone
- es_extended (optional)
- Brain
Github
Download & Installation
- Download https://github.com/BaziForYou/PolySafeZone/archive/main.zip
- Put it in the
resources
folder
Installation
- Add this in your
server.cfg
in the following order:
start PolySafeZone
Support
- Please report any issues you have in the GitHub Issues
How To Add Zone Coords?
- You can use
/pzcreate poly
and make zone and copy coords frompolyzone_created_zones.txt
- Also you can use this
website
for making zones and copy the coords
Exports
Client
Export | Description | Parameter(s) | Return type |
---|---|---|---|
InSafeZone | Return is in SafeZone or no | Nothing | true or false or nil |
SafeZoneName | Return is player SafeZone name | Nothing | string |
CanAttackInSafeZone | Return player is whitelisted to attack in SafeZone or no | Nothing | true or false or nil |
SetJobAndGrade | Set player current job and grade | job, grade | Nothing |