vehiclekeys to auto or manual
This commit is contained in:
1 parent
b0f1704806
commit
6bcd894fdb
12 files changed
+27
-39
No files matched your search
@@ -3,12 +3,11 @@ if GetResourceState('MrNewbVehicleKeys') ~= 'started' or (BridgeClientConfig.Veh
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||
if not DoesEntityExist(vehicle) and not plate then return false end
|
||||
return exports.MrNewbVehicleKeys:GiveKeys(vehicle)
|
||||
if not plate then return false end
|
||||
return exports.MrNewbVehicleKeys:GiveKeysByPlate(plate)
|
||||
end
|
||||
|
||||
VehicleKey.RemoveKeys = function(vehicle, plate)
|
||||
if not vehicle and not plate then return false end
|
||||
if not DoesEntityExist(vehicle) then return exports.MrNewbVehicleKeys:RemoveKeysByPlate(plate) end
|
||||
return exports.MrNewbVehicleKeys:RemoveKeys(vehicle)
|
||||
if not plate then return false end
|
||||
return exports.MrNewbVehicleKeys:RemoveKeysByPlate(plate)
|
||||
end
|
||||
Reference in new issue
Block a user