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
MIT License
204 stars 191 forks source link

HOW To print name of the zone #61

Closed SYNO-SY closed 2 years ago

SYNO-SY commented 2 years ago

Is there any way to print zone name if isInsidePoint?

mkafrin commented 2 years ago

@SYNO-Dev The zone name is just a property on the zone.

local zone = CircleZone:Create(vector3(0.0, 0.0, 0.0), 3.0, {
    name="circle_zone",
    debugPoly=false,
})
print(zone.name) -- Name is stored on the zone
SYNO-SY commented 2 years ago

thank you yeah its working... i was getting nil its because i did not give name in the config