FearlessStudios

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

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