keys moved to client config
This commit is contained in:
1 parent
5f42429c53
commit
9a04f05448
28 files changed
+21
-180
No files matched your search
@@ -1,4 +1,4 @@
|
||||
if GetResourceState('Renewed-Vehiclekeys') ~= 'started' or (BridgeSharedConfig.VehicleKey ~= "Renewed-Vehiclekeys" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
||||
if GetResourceState('Renewed-Vehiclekeys') ~= 'started' or (BridgeClientConfig.VehicleKey ~= "Renewed-Vehiclekeys" and BridgeClientConfig.VehicleKey ~= "auto") then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
if GetResourceState('Renewed-Vehiclekeys') ~= 'started' or (BridgeSharedConfig.VehicleKey ~= "Renewed-Vehiclekeys" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
||||
if not plate then plate = GetVehicleNumberPlateText(vehicle) end
|
||||
exports['Renewed-Vehiclekeys']:addKey(src, plate)
|
||||
end
|
||||
|
||||
VehicleKey.RemoveKeys = function(src, vehicle, plate)
|
||||
if not plate then plate = GetVehicleNumberPlateText(vehicle) end
|
||||
exports['Renewed-Vehiclekeys']:removeKey(src, plate)
|
||||
end
|
||||
Reference in new issue
Block a user