Exports and Events

Client Side Exports

isInSafeZone - Checks if a player is currently inside any safezone.

if exports['fcn_safezones']:isInSafeZone() then
    print("You are in a safezone")
end

isInSpecificSafeZone - Checks if a player is inside a specific, named safezone.

if exports['fcn_safezones']:isInSpecificSafeZone("Test") then
    print("You are in a safezone named: Test")
end

Client Side Events

fcn_safezones:entered - Triggered when a player enters a safezone. Returns the label (name) of the zone.

AddEventHandler('fcn_safezones:entered', function(label)
    print("You entered a safezone named: " .. tostring(label))
    if label == "Test" then
        print("entered: Test")
    end
end)

onSafeZoneExit - Triggered when a player leaves a safezone. Returns the label (name) of the zone.

Last updated