Get if player ID owns a plate
Export
exports["vehicles_keys"]:isPlayerOwnerOfVehiclePlate(playerId, plate, onlyOwnedVehicles)Parameters
Name
Data Type
Description
Return
Example
RegisterCommand("checkPlate", function(playerId, args)
local plate = args[1] -- Example "ABC 123"
if(exports["vehicles_keys"]:isPlayerOwnerOfVehiclePlate(playerId, plate, false)) then
print("I own this vehicle plate")
else
print("I DO NOT own this vehicle plate")
end
end)Last updated