Kartik Scripts

Lookup Plate

Retrieves owner details, vehicle state, flags, and strike points for a registered vehicle plate.

Export Syntax

exports['kartik-mdt']:LookupPlate(plate)

Parameters

ParameterTypeRequiredDescription
platestringYesVehicle license plate (case-insensitive)

Return Value

  • Returns table containing plate record and owner details, or false if 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

On this page