Lookup Plate
Retrieves owner details, vehicle state, flags, and strike points for a registered vehicle plate.
Export Syntax
exports['kartik-mdt']:LookupPlate(plate)Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
plate | string | Yes | Vehicle license plate (case-insensitive) |
Return Value
- Returns
tablecontaining plate record and owner details, orfalseif not registered in the database:
{
plate = string,
citizenId = string, -- owner's citizen ID
owner = string, -- "Firstname Lastname"
model = string, -- spawn model name
label = string, -- human-readable vehicle name
flagged = boolean,
flagReason = string,
strikePoints = number,
vehicleState = string, -- "garage" | "out" | "impounded"
}Example Usage
local plate = "46EEK281"
local info = exports['kartik-mdt']:LookupPlate(plate)
if info then
print(string.format("Plate: %s | Owner: %s | State: %s", info.plate, info.owner, info.vehicleState))
if info.flagged then
print(string.format("⚠️ VEHICLE FLAGGED: %s", info.flagReason))
end
else
print("Plate is not registered in the system.")
end