vehicle keys moved to new auto/config format

This commit is contained in:
MrNewb committed 2025-03-04 22:24:19 -05:00
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 {}