13 lines
571 B
Lua
13 lines
571 B
Lua
if GetResourceState('Renewed-Vehiclekeys') ~= 'started' or (BridgeSharedConfig.VehicleKey ~= "Renewed-Vehiclekeys" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
|
|
|
VehicleKey = VehicleKey or {}
|
|
|
|
VehicleKey.GiveKeys = function(vehicle, plate)
|
|
if not plate and not DoesEntityExist(vehicle) then return false end
|
|
return exports['Renewed-Vehiclekeys']:addKey(plate)
|
|
end
|
|
|
|
VehicleKey.RemoveKeys = function(vehicle, plate)
|
|
if not plate and not DoesEntityExist(vehicle) then return false end
|
|
return exports['Renewed-Vehiclekeys']:removeKey(plate)
|
|
end |