Kartik Scripts

Has Active Warrant

Checks whether a specific citizen ID has an active warrant issued.

Export Syntax

exports['kartik-mdt']:HasActiveWarrant(citizenId)

Parameters

ParameterTypeRequiredDescription
citizenIdstringYesThe citizen's unique State ID/Citizen ID

Return Value

  • Returns boolean: true if there is an active warrant in the system, false otherwise.

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

On this page