Get if local player owns a plate
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
This export can be used to know if the local player owns a vehicle plate. Will also check for shared, temporary, etc.
exports["vehicles_keys"]:doesPlayerOwnPlate(plate)
plate
string
The vehicle plate to check
true
if the vehicle is owned
false
if the vehicle is not owned
RegisterCommand("checkPlate", function(_, args)
local plate = args[1] -- Example "ABC 123"
if(exports["vehicles_keys"]:doesPlayerOwnPlate(plate)) then
print("I own this vehicle plate")
else
print("I DO NOT own this vehicle plate")
end
end)