IsActiveLeo
Check whether a player is an active law-enforcement unit
IsActiveLeo
Checks the player through the configured SonoranCAD, LUX CAD, or framework source. Hybrid modes try the CAD provider first and use the framework as fallback.
Usage
local result = exports["FS-Scoreboard"]:IsActiveLeo(source)
if result.ok then
print(("Player is active through %s"):format(result.source or "unknown"))
else
print(("Not active LEO: %s"):format(result.reason or "unknown"))
endParameters
Prop
Type
Returns
Every response includes ok. A failed response may include reason. Successful
responses include provider-specific information such as:
source:sonoran,lux, orframeworkcategory: normalized service category when availablestatusandstatusLabel: provider status information when availableavailable: LUX availability state when availablepage: Sonoran unit page when availableframeworkandjob: framework information when available