Main/resources/[jobs]/[civ]/gg_hunting/client/components/zoneHandler.lua
2025-06-07 08:51:21 +02:00

31 lines
594 B
Lua

local plyInHuntingZone = false
function playerInZone()
return plyInHuntingZone
end
exports('playerInHuntingZone', function(x)
return plyInHuntingZone
end)
--Polyzone
CreateThread(function()
function onEnter(self)
plyInHuntingZone = true
end
function onExit(self)
plyInHuntingZone = false
end
local polypoints = Config.PolyzonePoints
local poly = lib.zones.poly({
points = {
table.unpack(polypoints)
},
thickness = Config.Polyzone.thickness,
debug = Config.Polyzone.debug,
onEnter = onEnter,
onExit = onExit
})
end)