IsActiveLeo
Check whether a player is an active law-enforcement unit
IsActiveLeo
Call this in a server script to check whether a player is active law enforcement. It uses your SonoranCAD, LUX CAD, or framework setup. In hybrid mode, it checks CAD first and falls back to the framework.
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