Exports

HasFakePlate - Check if a vehicle has a fakeplate installed. Returns string or false

--Returns fakeplate text or false
exports["mk_plates"]:HasFakePlate(vehicle)

--Example
local fake = exports["mk_plates"]:HasFakePlate(vehicle)
if fake then 
    print('this vehicle has a fake plate installed', fake)
else
    print('no fake plate found')
end

RemoveFakePlate - Remove a fake plate from a vehicle. Useful for scripts like police jobs to remove a fake plate from a vehicle. If this export is called and the vehicle does not have a fake plate nothing happens. If giveKeys is true the player removing the plate will receive keys to the vehicle if one is removed

--giveKeys param is a boolean (true/false)
exports["mk_plates"]:RemoveFakePlate(vehicle, giveKeys)

--Example
local vehicle = QBCore.Functions.GetClosestVehicle()
if vehicle and vehicle > 0 then --vehicle exists
    exports['mk_plates']:RemoveFakePlate(vehicle, false) --giveKeys false (player will not recieve keys)
end

Last updated