Exports

Exports for stevo_dmv.

Server Exports

isVehicleRegistered

Example Usage

local isVehicleRegistered, formattedMessage = exports.stevo_dmv:IsVehicleRegistered(plate) 

--- IsVehicleRegistered = string or boolean
--- formattedMessage = string or 

if not isVehicleRegistered then 
 -- returns false if no vehicle data is availible
end 

if isVehicleRegistered == 'valid' then 
 -- returns 'valid' if the registration is valid
 -- formattedMessage will display Valid until %s of %s %d
end 

if isVehicleRegistered == 'expired' then 
-- returns 'expired' if the registration is expired
 -- formattedMessage will display Expired on %s of %s %d
end

if isVehicleRegistered == 'notregistered' then 
 -- returns 'notregistered' if the vehicle is not registered yet.
end

Last updated