Integration

Client

IsInSafezone

Checks if the local player is currently inside a safezone.

local result = exports['ak47_safezone']:IsInSafezone()
  • Returns: table | nil - Safezone data table if inside, otherwise nil.

ak47_safezone:on:enter

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

ak47_safezone:on:exit

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