FearlessStudios

IsActiveLeo

Server export to check if a player is an active LEO (Sonoran CAD)

IsActiveLeo

Checks if a player is an active law enforcement unit in Sonoran CAD.

Returns ok = false when Sonoran integration is disabled, the player has no active unit, or the player id is invalid.

Usage

server.lua
local result = exports["FS-Scoreboard"]:IsActiveLeo(source)
if result.ok then
  print("Player is active LEO")
else
  print(("Not active LEO: %s"):format(result.reason or "unknown"))
end

Parameters

Prop

Type

Returns

Prop

Type