safezone:enteredZone
The safezone:enteredZone event is triggered when a player enters a safezone. It allows other scripts to react instantly to the player entering a protected area.
AddEventHandler('safezone:enteredZone', function(zone)
print('[SAFEZONE] Entered zone:', zone)
end)This provides the zone data so you can apply custom logic such as disabling combat, weapons, or specific actions.
safezone:leftZone
The safezone:leftZone event is triggered when a player leaves a safezone. It is useful for restoring normal gameplay behavior once the player exits the protected area.
AddEventHandler('safezone:leftZone', function(zone)
print('[SAFEZONE] Left zone:', zone)
end)This provides the zone data so you can re-enable combat, weapons, or any mechanics previously restricted inside the safezone.



