vehicle keys moved to new auto/config format
This commit is contained in:
1 parent
355d8dd29f
commit
aede7a3d2a
14 files changed
+43
-14
No files matched your search
@@ -1,4 +1,6 @@
|
||||
if GetResourceState('F_RealCarKeysSystem') ~= 'started' or (BridgeClientConfig.VehicleKey ~= "F_RealCarKeysSystem" and BridgeClientConfig.VehicleKey ~= "auto") then return end
|
||||
local resourceName = "F_RealCarKeysSystem"
|
||||
local configValue = BridgeClientConfig.VehicleKey
|
||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
if GetResourceState('MrNewbVehicleKeys') ~= 'started' or (BridgeClientConfig.VehicleKey ~= "MrNewbVehicleKeys" and BridgeClientConfig.VehicleKey ~= "auto") then return end
|
||||
local resourceName = "MrNewbVehicleKeys"
|
||||
local configValue = BridgeClientConfig.VehicleKey
|
||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
if GetResourceState('Renewed-Vehiclekeys') ~= 'started' or (BridgeClientConfig.VehicleKey ~= "Renewed-Vehiclekeys" and BridgeClientConfig.VehicleKey ~= "auto") then return end
|
||||
local resourceName = "Renewed-Vehiclekeys"
|
||||
local configValue = BridgeClientConfig.VehicleKey
|
||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
if GetResourceState('cd_garage') ~= 'started' or (BridgeClientConfig.VehicleKey ~= "cd_garage" and BridgeClientConfig.VehicleKey ~= "auto") then return end
|
||||
local resourceName = "cd_garage"
|
||||
local configValue = BridgeClientConfig.VehicleKey
|
||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
if GetResourceState('jaksams_VehiclesKeys') ~= 'started' or (BridgeClientConfig.VehicleKey ~= "jaksam" and BridgeClientConfig.VehicleKey ~= "auto") then return end
|
||||
local resourceName = "jaksams_VehiclesKeys"
|
||||
local configValue = BridgeClientConfig.VehicleKey
|
||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
||||
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
if GetResourceState('mk_vehiclekeys') ~= 'started' or (BridgeClientConfig.VehicleKey ~= "mk_vehiclekeys" and BridgeClientConfig.VehicleKey ~= "auto") then return end
|
||||
local resourceName = "mk_vehiclekeys"
|
||||
local configValue = BridgeClientConfig.VehicleKey
|
||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
if GetResourceState('mono_carkeys') ~= 'started' or (BridgeClientConfig.VehicleKey ~= "mono_carkeys" and BridgeClientConfig.VehicleKey ~= "auto") then return end
|
||||
local resourceName = "mono_carkeys"
|
||||
local configValue = BridgeClientConfig.VehicleKey
|
||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
if GetResourceState('okokGarage') ~= 'started' or (BridgeClientConfig.VehicleKey ~= "okokGarage" and BridgeClientConfig.VehicleKey ~= "auto") then return end
|
||||
local resourceName = "okokGarage"
|
||||
local configValue = BridgeClientConfig.VehicleKey
|
||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
if GetResourceState('qb-vehiclekeys') ~= 'started' and not GetResourceState("qbx_vehiclekeys") == "started" or (BridgeClientConfig.VehicleKey ~= "qb-vehiclekeys" and BridgeClientConfig.VehicleKey ~= "auto") then return end
|
||||
local resourceName = "qb-vehiclekeys"
|
||||
local configValue = BridgeClientConfig.VehicleKey
|
||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
if GetResourceState('qbx_vehiclekeys') ~= 'started' or (BridgeClientConfig.VehicleKey ~= "qbx" and BridgeClientConfig.VehicleKey ~= "auto") then return end
|
||||
local resourceName = "qbx_vehiclekeys"
|
||||
local configValue = BridgeClientConfig.VehicleKey
|
||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
if GetResourceState('qs-vehiclekeys') ~= 'started' or (BridgeClientConfig.VehicleKey ~= "qs-vehiclekeys" and BridgeClientConfig.VehicleKey ~= "auto") then return end
|
||||
local resourceName = "qs-vehiclekeys"
|
||||
local configValue = BridgeClientConfig.VehicleKey
|
||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
if GetResourceState('t1ger_keys') ~= 'started' or (BridgeClientConfig.VehicleKey ~= "t1ger_keys" and BridgeClientConfig.VehicleKey ~= "auto") then return end
|
||||
local resourceName = "t1ger_keys"
|
||||
local configValue = BridgeClientConfig.VehicleKey
|
||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
if GetResourceState('wasabi_carlock') ~= 'started' or (BridgeClientConfig.VehicleKey ~= "wasabi_carlock" and BridgeClientConfig.VehicleKey ~= "auto") then return end
|
||||
local resourceName = "wasabi_carlock"
|
||||
local configValue = BridgeClientConfig.VehicleKey
|
||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||
|
||||
@@ -6,7 +6,7 @@ BridgeClientConfig.InputSystem = "auto" -- [ auto | ox | qb ]
|
||||
BridgeClientConfig.MenuSystem = "auto" -- [ auto | ox_lib | qb-menu ]
|
||||
BridgeClientConfig.ProgressBarSystem = "auto" -- [ auto | ox | qb ]
|
||||
BridgeClientConfig.ZoneSystem = "ox" -- [ ox | poly ]
|
||||
BridgeClientConfig.VehicleKey = "auto" -- [ auto | qb-vehiclekeys | MrNewbVehicleKeys | wasabi | jaksam | qbx | cd | f_real | mk | okok | qs | renewed | t1ger | mono ]
|
||||
BridgeClientConfig.VehicleKey = "auto" -- [ auto | qb-vehiclekeys | MrNewbVehicleKeys | jaksams_VehiclesKeys | wasabi_carlock | mk_vehiclekeys | qbx_vehiclekeys | qs-vehiclekeys | t1ger_keys | Renewed-Vehiclekeys | mono_carkeys| cd_garage | okokGarage | F_RealCarKeysSystem
|
||||
BridgeClientConfig.Fuel = "auto" -- [ LegacyFuel | ox_fuel | ps-fuel | qs-fuelstations | Renewed-Fuel | ti_fuel | lc_fuel | x-fuel | cdn-fuel | esx-sna-fuel | BigDaddy-Fuel | okokGasStation ]
|
||||
BridgeClientConfig.TargetSystem = "ox" -- [ ox | qb | sleepless | auto ] -- sleepless is only partially supported and would need another system in place
|
||||
|
||||
|
||||
Reference in new issue
Block a user