[RELEASE] PolySafeZone

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

Video

Requirements

Github

Download & Installation

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 from polyzone_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
12 Likes

thanks friend

2 Likes

So how i can draw and make vector 2 like the screenshot ??

1 Like

You can use the creation tool of polyzone

2 Likes

I hate to be that guy but…

image

YOU’RE*

minus the are

1 Like

it’s just simple text everybody can change that’s why I put that in the config I did that less than an hour that’s why I missed something
btw thanks for the report and sorry for my bad English

1 Like

all goods

1 Like

sorry just wondering lil confused so it says the require ments for this is Brain where do i get that and where abouts does it go once i have it
second question once i create the poly zone where would i put the coords for the polyzone when i get them from the txt file ?

1 Like

Brain part was funny but i would like help adding gz’s to config lua aswell

1 Like

hi so I use qtarget, and it doesnt work in zones, how to whitelist LALT to work in zones

check disable control keys from code but I recommend change your target to work with key mapping then you don’t will have problem

How can I make players and Peds do not collide while in safe zone? I couldnt manage to do it.