Safezone with NUI

Resmon : 0.01 ms

Description : Simple safezone system using polyzone
When you enter the zone nui will appear
When you out of the zone nui will appear
You cant attack others but you can attack npc or punch anything simple pvp mode on and off

Video : SafeZone using Polyzone Tutorial on BT-Polyzone - YouTube

full.rar (24.4 KB)

Requirements :
bt-polyzone
link to download : GitHub - brentN5/bt-polyzone

Polyzone
link to download : GitHub - mkafrin/PolyZone: PolyZone is a FiveM mod to define zones of different shapes and test whether a point is inside or outside of the zone

This just the basic and for new to codings if you think your better just keep it in your self or share your things

outeside zone
image

safezone
image

8 Likes

:+1:t2::+1:t2::+1:t2::+1:t2:

1 Like

can u share property like in your photos

1 Like

property?

1 Like

image
like this

1 Like

thats all housing by mf

1 Like

hi i seem to have a issue once you have been in a safe zone and leave it makes you invincible so you still dont take damage even if it says not safe zone.

it is depends on the pvp mode your using show your code

did you want the nui code that i changed? sorry lil new to LUA

im running es_extended v1.2 final

qqq01

I don’t understand why it doesn’t work