Checks if the local player is currently inside a safezone.
local result = exports['ak47_safezone']:IsInSafezone()table | nil - Safezone data table if inside, otherwise nil.Triggers when the local player enters a safezone.
AddEventHandler('ak47_safezone:on:enter', function(zoneData)
-- Code here
end)| Parameter | Type | Required | Description |
|---|---|---|---|
zoneData |
table | Yes | Safezone configuration table |
Triggers when the local player exits a safezone.
AddEventHandler('ak47_safezone:on:exit', function(zoneData)
-- Code here
end)| Parameter | Type | Required | Description |
|---|---|---|---|
zoneData |
table | Yes | Safezone configuration table |