Has Active Warrant
Checks whether a specific citizen ID has an active warrant issued.
Export Syntax
exports['kartik-mdt']:HasActiveWarrant(citizenId)Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
citizenId | string | Yes | The citizen's unique State ID/Citizen ID |
Return Value
- Returns
boolean:trueif there is an active warrant in the system,falseotherwise.
Example Usage
local citizenId = "QBX000123"
local wanted = exports['kartik-mdt']:HasActiveWarrant(citizenId)
if wanted then
print(string.format("SUSPECT %s IS WANTED! Proceed with caution.", citizenId))
else
print(string.format("Citizen %s has no active warrants.", citizenId))
end