Exports and Events
Client Side Exports
isInSafeZone - Checks if a player is currently inside any safezone.
isInSafeZone - Checks if a player is currently inside any safezone.if exports['fcn_safezones']:isInSafeZone() then
print("You are in a safezone")
endisInSpecificSafeZone - Checks if a player is inside a specific, named safezone.
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")
endClient Side Events
fcn_safezones:entered - Triggered when a player enters a safezone. Returns the label (name) of the zone.
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.
onSafeZoneExit - Triggered when a player leaves a safezone. Returns the label (name) of the zone.Last updated