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('F_RealCarKeysSystem') ~= 'started' or (BridgeSharedConfig.VehicleKey ~= "F_RealCarKeysSystem" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
||||
if GetResourceState('F_RealCarKeysSystem') ~= 'started' or (BridgeClientConfig.VehicleKey ~= "F_RealCarKeysSystem" and BridgeClientConfig.VehicleKey ~= "auto") then return end
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if GetResourceState('MrNewbVehicleKeys') ~= 'started' or (BridgeSharedConfig.VehicleKey ~= "MrNewbVehicleKeys" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
||||
if GetResourceState('MrNewbVehicleKeys') ~= 'started' or (BridgeClientConfig.VehicleKey ~= "MrNewbVehicleKeys" and BridgeClientConfig.VehicleKey ~= "auto") then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
if GetResourceState('MrNewbVehicleKeys') ~= 'started' or (BridgeSharedConfig.VehicleKey ~= "MrNewbVehicleKeys" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
||||
if vehicle then
|
||||
local netId = NetworkGetNetworkIdFromEntity(vehicle)
|
||||
return exports.MrNewbVehicleKeys:GiveKeys(src, netId)
|
||||
elseif plate then
|
||||
return exports.MrNewbVehicleKeys:GiveKeysByPlate(src, plate)
|
||||
end
|
||||
end
|
||||
|
||||
VehicleKey.RemoveKeys = function(src, vehicle, plate)
|
||||
if vehicle then
|
||||
local netId = NetworkGetNetworkIdFromEntity(vehicle)
|
||||
return exports.MrNewbVehicleKeys:RemoveKeys(src, netId)
|
||||
elseif plate then
|
||||
return exports.MrNewbVehicleKeys:RemoveKeysByPlate(src, plate)
|
||||
end
|
||||
end
|
||||
@@ -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
|
||||
@@ -1,9 +0,0 @@
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
||||
--wip
|
||||
end
|
||||
|
||||
VehicleKey.RemoveKeys = function(src, vehicle, plate)
|
||||
-- wip
|
||||
end
|
||||
@@ -1,4 +1,4 @@
|
||||
if GetResourceState('cd_garage') ~= 'started' or (BridgeSharedConfig.VehicleKey ~= "cd_garage" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
||||
if GetResourceState('cd_garage') ~= 'started' or (BridgeClientConfig.VehicleKey ~= "cd_garage" and BridgeClientConfig.VehicleKey ~= "auto") then return end
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
if GetResourceState('cd_garage') ~= 'started' or (BridgeSharedConfig.VehicleKey ~= "cd_garage" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
||||
--wip
|
||||
end
|
||||
|
||||
VehicleKey.RemoveKeys = function(src, vehicle, plate)
|
||||
-- wip
|
||||
end
|
||||
@@ -1,4 +1,4 @@
|
||||
if GetResourceState('mk_vehiclekeys') ~= 'started' or (BridgeSharedConfig.VehicleKey ~= "mk_vehiclekeys" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
||||
if GetResourceState('mk_vehiclekeys') ~= 'started' or (BridgeClientConfig.VehicleKey ~= "mk_vehiclekeys" and BridgeClientConfig.VehicleKey ~= "auto") then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
if GetResourceState('mk_vehiclekeys') ~= 'started' or (BridgeSharedConfig.VehicleKey ~= "mk_vehiclekeys" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
||||
-- wip
|
||||
end
|
||||
|
||||
VehicleKey.RemoveKeys = function(src, vehicle, plate)
|
||||
--wip
|
||||
end
|
||||
@@ -1,4 +1,4 @@
|
||||
if GetResourceState('mono_carkeys') ~= 'started' or (BridgeSharedConfig.VehicleKey ~= "mono_carkeys" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
||||
if GetResourceState('mono_carkeys') ~= 'started' or (BridgeClientConfig.VehicleKey ~= "mono_carkeys" and BridgeClientConfig.VehicleKey ~= "auto") then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if GetResourceState('okokGarage') ~= 'started' or (BridgeSharedConfig.VehicleKey ~= "okokGarage" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
||||
if GetResourceState('okokGarage') ~= 'started' or (BridgeClientConfig.VehicleKey ~= "okokGarage" and BridgeClientConfig.VehicleKey ~= "auto") then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
if GetResourceState('okokGarage') ~= 'started' or (BridgeSharedConfig.VehicleKey ~= "okokGarage" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
||||
--wip
|
||||
end
|
||||
|
||||
VehicleKey.RemoveKeys = function(src, vehicle, plate)
|
||||
-- wip
|
||||
end
|
||||
@@ -1,4 +1,4 @@
|
||||
if GetResourceState('qb-vehiclekeys') ~= 'started' and not GetResourceState("qbx_vehiclekeys") == "started" or (BridgeSharedConfig.VehicleKey ~= "qb-vehiclekeys" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
||||
if GetResourceState('qb-vehiclekeys') ~= 'started' and not GetResourceState("qbx_vehiclekeys") == "started" or (BridgeClientConfig.VehicleKey ~= "qb-vehiclekeys" and BridgeClientConfig.VehicleKey ~= "auto") then return end
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
if GetResourceState('qb-vehiclekeys') ~= 'started' and not GetResourceState("qbx_vehiclekeys") == "started" or (BridgeSharedConfig.VehicleKey ~= "qb-vehiclekeys" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
||||
if not plate and vehicle then
|
||||
plate = GetVehicleNumberPlateText(vehicle)
|
||||
end
|
||||
return exports["qb-vehiclekeys"]:GiveKeys(src, plate)
|
||||
end
|
||||
|
||||
VehicleKey.RemoveKeys = function(src, vehicle, plate)
|
||||
if not plate and vehicle then
|
||||
plate = GetVehicleNumberPlateText(vehicle)
|
||||
end
|
||||
return exports["qb-vehiclekeys"]:RemoveKeys(src, plate)
|
||||
end
|
||||
@@ -1,4 +1,4 @@
|
||||
if GetResourceState('qbx_vehiclekeys') ~= 'started' or (BridgeSharedConfig.VehicleKey ~= "qbx_vehiclekeys" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
||||
if GetResourceState('qbx_vehiclekeys') ~= 'started' or (BridgeClientConfig.VehicleKey ~= "qbx_vehiclekeys" and BridgeClientConfig.VehicleKey ~= "auto") then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
if GetResourceState('qbx_vehiclekeys') ~= 'started' or (BridgeSharedConfig.VehicleKey ~= "qbx_vehiclekeys" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
||||
--wip
|
||||
end
|
||||
|
||||
VehicleKey.RemoveKeys = function(src, vehicle, plate)
|
||||
-- wip
|
||||
end
|
||||
@@ -1,4 +1,4 @@
|
||||
if GetResourceState('qs-vehiclekeys') ~= 'started' or (BridgeSharedConfig.VehicleKey ~= "qs-vehiclekeys" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
||||
if GetResourceState('qs-vehiclekeys') ~= 'started' or (BridgeClientConfig.VehicleKey ~= "qs-vehiclekeys" and BridgeClientConfig.VehicleKey ~= "auto") then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
if GetResourceState('qs-vehiclekeys') ~= 'started' or (BridgeSharedConfig.VehicleKey ~= "qs-vehiclekeys" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
||||
if not vehicle and not plate then return end
|
||||
local netId = NetworkGetNetworkIdFromEntity(vehicle)
|
||||
TriggerClientEvent("community_bridge:vehicleKey:giveKeys", src, netId, plate)
|
||||
end
|
||||
|
||||
VehicleKey.RemoveKeys = function(src, vehicle, plate)
|
||||
if not vehicle and not plate then return end
|
||||
local netId = NetworkGetNetworkIdFromEntity(vehicle)
|
||||
TriggerClientEvent("community_bridge:vehicleKey:removeKeys", src, netId, plate)
|
||||
end
|
||||
@@ -1,4 +1,4 @@
|
||||
if GetResourceState('t1ger_keys') ~= 'started' or (BridgeSharedConfig.VehicleKey ~= "t1ger_keys" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
||||
if GetResourceState('t1ger_keys') ~= 'started' or (BridgeClientConfig.VehicleKey ~= "t1ger_keys" and BridgeClientConfig.VehicleKey ~= "auto") then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
if GetResourceState('t1ger_keys') ~= 'started' or (BridgeSharedConfig.VehicleKey ~= "t1ger_keys" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
||||
TriggerClientEvent("community_bridge:vehicleKey:giveKeys", src, plate)
|
||||
end
|
||||
|
||||
VehicleKey.RemoveKeys = function(src, vehicle, plate)
|
||||
|
||||
end
|
||||
@@ -1,4 +1,4 @@
|
||||
if GetResourceState('wasabi_carlock') ~= 'started' or (BridgeSharedConfig.VehicleKey ~= "wasabi_carlock" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
||||
if GetResourceState('wasabi_carlock') ~= 'started' or (BridgeClientConfig.VehicleKey ~= "wasabi_carlock" and BridgeClientConfig.VehicleKey ~= "auto") then return end
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
if GetResourceState('wasabi_carlock') ~= 'started' or (BridgeSharedConfig.VehicleKey ~= "wasabi_carlock" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
||||
if not plate and vehicle then plate = GetVehicleNumberPlateText(vehicle) end
|
||||
exports.wasabi_carlock:GiveKey(src, plate)
|
||||
end
|
||||
|
||||
VehicleKey.RemoveKeys = function(src, vehicle, plate)
|
||||
if not plate and vehicle then plate = GetVehicleNumberPlateText(vehicle) end
|
||||
exports.wasabi_carlock:RemoveKey(src, plate)
|
||||
end
|
||||
@@ -1,6 +0,0 @@
|
||||
if GetResourceState('qb-weathersync') ~= 'started' then return end
|
||||
Weather = {}
|
||||
|
||||
Weather.ToggleSync = function(src, toggle)
|
||||
-- wip
|
||||
end
|
||||
@@ -1,6 +0,0 @@
|
||||
if GetResourceState('Renewed-Weathersync') ~= 'started' then return end
|
||||
Weather = {}
|
||||
|
||||
Weather.ToggleSync = function(src, toggle)
|
||||
-- wip
|
||||
end
|
||||
@@ -1,6 +0,0 @@
|
||||
if GetResourceState('qb-weathersync') ~= 'started' then return end
|
||||
Weather = {}
|
||||
|
||||
Weather.ToggleSync = function(src, toggle)
|
||||
-- wip
|
||||
end
|
||||
@@ -1,12 +1,13 @@
|
||||
BridgeClientConfig = {}
|
||||
BridgeClientConfig.DebugLevel = 0 -- Debug level, 0 for none, 1 for some, 2 for all data
|
||||
BridgeClientConfig.NotifySystem = "ox" -- [ ox | qb | esx | mythic | pNotify | t-notify | wasabi | lab | custom ]
|
||||
BridgeClientConfig.HelpTextSystem = "auto"
|
||||
BridgeClientConfig.ShowHelpText = "ox" -- [ox | jg | qb | lab | custom ]
|
||||
BridgeClientConfig.InputSystem = "auto" -- [ auto | ox | qb ]
|
||||
BridgeClientConfig.MenuSystem = "auto" -- [ auto | ox | qb ]
|
||||
BridgeClientConfig.DebugLevel = 0 -- Debug level, 0 for none, 1 for some, 2 for all data
|
||||
BridgeClientConfig.NotifySystem = "ox" -- [ ox | qb | esx | mythic | pNotify | t-notify | wasabi | lab | custom ]
|
||||
BridgeClientConfig.HelpTextSystem = "auto"
|
||||
BridgeClientConfig.ShowHelpText = "ox" -- [ox | jg | qb | lab | custom ]
|
||||
BridgeClientConfig.InputSystem = "auto" -- [ auto | ox | qb ]
|
||||
BridgeClientConfig.MenuSystem = "auto" -- [ auto | ox | qb ]
|
||||
BridgeClientConfig.ProgressBarSystem = "auto"
|
||||
BridgeClientConfig.ZoneSystem = "ox" -- [ ox | poly ]
|
||||
BridgeClientConfig.ProgressBar = "ox" -- [ ox | qb ]
|
||||
BridgeClientConfig.ZoneSystem = "ox" -- [ ox | poly ]
|
||||
BridgeClientConfig.ProgressBar = "ox" -- [ ox | qb ]
|
||||
BridgeClientConfig.VehicleKey = "auto" -- Change this to your prefrence or leave it as auto
|
||||
|
||||
return BridgeClientConfig
|
||||
@@ -1,7 +1,6 @@
|
||||
BridgeSharedConfig = {}
|
||||
BridgeSharedConfig.Lang = "auto" -- Change this to your preferred language (must match the locale file name ex. en or fr etc)
|
||||
BridgeSharedConfig.DebugLevel = 0 -- Change this to your Debug level, 0 for none, 1 for some, 2 for all data
|
||||
BridgeSharedConfig.VehicleKey = "auto" -- Change this to your prefrence or leave it as auto
|
||||
BridgeSharedConfig.Phone = "auto" -- Change this to your prefrence or leave it as auto
|
||||
|
||||
return BridgeSharedConfig
|
||||
Reference in new issue
Block a user