🔁Exports & Events
HasInspection
local status, expiresAt = exports['m-Inspection']:HasInspection(plate)
if status == "valid" then
print("Valid inspection, expires: " .. os.date('%Y-%m-%d %H:%M:%S', expiresAt))
elseif status == "expired" or status == "invalid" then
print("Invalid or expired inspection")
else
print("No inspection")
endGetPlayerInspections
local identifier = 'identifier or citizenid' -- Identifier or citizen id
local inspections = exports['m-Inspection']:GetPlayerInspections(citizenid)
for _, inspection in ipairs(inspections) do
print(('Plate: %s | Status: %s | Expire at: %s'):format(inspection.plate, inspection.status, os.date('%d/%m/%Y', inspection.expires_at)))
end
CreateInspection
RemoveInspection
UpdateInspectionStatus
Last updated