Get if player is owner of vehicle plate
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
Returns if a player ID is the owner of a specific plate
exports["jobs_creator"]:isPlayerOwnerOfVehiclePlate(playerId, plate)
playerId
integer
Player's server ID
plate
string
Vehicle's plate
isOwner
bool
If the player is the vehicle owner or not
local playerId = 1
local plate = "40PQB261"
local isTheVehicleOwner = exports["jobs_creator"]:isPlayerOwnerOfVehiclePlate(playerId, plate)
print("Is the player owner of that plate: " .. tostring(isTheVehicleOwner))