FearlessStudios

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

server.lua
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"))
end

Parameters

Prop

Type

Returns

Every response includes ok. A failed response may include reason. Successful responses include provider-specific information such as:

  • source: sonoran, lux, or framework
  • category: normalized service category when available
  • status and statusLabel: provider status information when available
  • available: LUX availability state when available
  • page: Sonoran unit page when available
  • framework and job: framework information when available