should resolve start order issues

This commit is contained in:
MrNewb committed 2025-05-18 23:45:37 -04:00
1 parent f0feadf268
commit 68e81b720a
86 files changed
+113 -146

No files matched your search

@@ -1,4 +1,4 @@
if GetResourceState('bub-mdt') ~= 'started' then return end
if GetResourceState('bub-mdt') == 'missing' then return end
Dispatch = Dispatch or {}
Dispatch.SendAlert = function(data)
@@ -0,0 +1,4 @@
if GetResourceState('bub-mdt') == 'missing' then return end
Dispatch = Dispatch or {}
return Dispatch
@@ -1,4 +0,0 @@
if GetResourceState('bub-mdt') ~= 'started' then return end
Dispatch = Dispatch or {}
return Dispatch
@@ -1,4 +1,4 @@
if GetResourceState('cd_dispatch') ~= 'started' then return end
if GetResourceState('cd_dispatch') == 'missing' then return end
Dispatch = Dispatch or {}
Dispatch.SendAlert = function(data)
@@ -1,4 +1,4 @@
if GetResourceState('cd_dispatch') ~= 'started' then return end
if GetResourceState('cd_dispatch') == 'missing' then return end
Dispatch = Dispatch or {}
return Dispatch
+1 -1
View File
@@ -1,4 +1,4 @@
if GetResourceState('lb-tablet') ~= 'started' then return end
if GetResourceState('lb-tablet') == 'missing' then return end
Dispatch = Dispatch or {}
local function getPriorityLevel(priority)
+1 -1
View File
@@ -1,4 +1,4 @@
if GetResourceState('lb-tablet') ~= 'started' then return end
if GetResourceState('lb-tablet') == 'missing' then return end
Dispatch = Dispatch or {}
RegisterNetEvent("community_bridge:server:dispatch:sendAlert", function(data)
@@ -1,4 +1,4 @@
if GetResourceState('linden_outlawalert') ~= 'started' then return end
if GetResourceState('linden_outlawalert') == 'missing' then return end
Dispatch = Dispatch or {}
Dispatch.SendAlert = function(data)
@@ -1,4 +1,4 @@
if GetResourceState('linden_outlawalert') ~= 'started' then return end
if GetResourceState('linden_outlawalert') == 'missing' then return end
Dispatch = Dispatch or {}
return Dispatch
@@ -1,4 +1,4 @@
if GetResourceState('ps-dispatch') ~= 'started' then return end
if GetResourceState('ps-dispatch') == 'missing' then return end
if GetResourceState('lb-tablet') == 'started' then return end
Dispatch = Dispatch or {}
@@ -1,4 +1,4 @@
if GetResourceState('ps-dispatch') ~= 'started' then return end
if GetResourceState('ps-dispatch') == 'missing' then return end
if GetResourceState('lb-tablet') == 'started' then return end
Dispatch = Dispatch or {}
@@ -1,4 +1,4 @@
if GetResourceState('qs-dispatch') ~= 'started' then return end
if GetResourceState('qs-dispatch') == 'missing' then return end
Dispatch = Dispatch or {}
Dispatch.SendAlert = function(data)
@@ -1,4 +1,4 @@
if GetResourceState('qs-dispatch') ~= 'started' then return end
if GetResourceState('qs-dispatch') == 'missing' then return end
Dispatch = Dispatch or {}
return Dispatch
@@ -1,4 +1,4 @@
if GetResourceState('redutzu-mdt') ~= 'started' then return end
if GetResourceState('redutzu-mdt') == 'missing' then return end
Dispatch = Dispatch or {}
Dispatch.SendAlert = function(data)
@@ -1,4 +1,4 @@
if GetResourceState('redutzu-mdt') ~= 'started' then return end
if GetResourceState('redutzu-mdt') == 'missing' then return end
Dispatch = Dispatch or {}
RegisterNetEvent("community_bridge:server:dispatch:sendAlert", function(data)
@@ -1,4 +1,4 @@
if GetResourceState('tk_dispatch') ~= 'started' then return end
if GetResourceState('tk_dispatch') == 'missing' then return end
Dispatch = Dispatch or {}
Dispatch.SendAlert = function(data)
@@ -1,4 +1,4 @@
if GetResourceState('tk_dispatch') ~= 'started' then return end
if GetResourceState('tk_dispatch') == 'missing' then return end
Dispatch = Dispatch or {}
return Dispatch
+9
View File
@@ -0,0 +1,9 @@
Doorlock = Doorlock or {}
---This will get the closest door to the ped
---@return string | nil
Doorlock.GetClosestDoor = function()
return nil
end
return Doorlock
+13
View File
@@ -0,0 +1,13 @@
---@diagnostic disable: duplicate-set-field
Doorlock = Doorlock or {}
---This will toggle the lock status of the door.
---@param doorID string
---@param toggle boolean
---@return boolean
Doorlock.ToggleDoorLock = function(doorID, toggle)
return true
end
return Doorlock
+1 -1
View File
@@ -1,5 +1,5 @@
---@diagnostic disable: duplicate-set-field
if GetResourceState('doors_creator') ~= 'started' then return end
if GetResourceState('doors_creator') == 'missing' then return end
Doorlock = Doorlock or {}
+1 -1
View File
@@ -1,5 +1,5 @@
---@diagnostic disable: duplicate-set-field
if GetResourceState('doors_creator') ~= 'started' then return end
if GetResourceState('doors_creator') == 'missing' then return end
Doorlock = Doorlock or {}
+1 -1
View File
@@ -1,5 +1,5 @@
---@diagnostic disable: duplicate-set-field
if GetResourceState('ox_doorlock') ~= 'started' then return end
if GetResourceState('ox_doorlock') == 'missing' then return end
Doorlock = Doorlock or {}
+1 -1
View File
@@ -1,5 +1,5 @@
---@diagnostic disable: duplicate-set-field
if GetResourceState('ox_doorlock') ~= 'started' then return end
if GetResourceState('ox_doorlock') == 'missing' then return end
Doorlock = Doorlock or {}
+1 -1
View File
@@ -1,5 +1,5 @@
---@diagnostic disable: duplicate-set-field
if GetResourceState('qb-doorlock') ~= 'started' then return end
if GetResourceState('qb-doorlock') == 'missing' then return end
Doorlock = Doorlock or {}
+1 -1
View File
@@ -1,5 +1,5 @@
---@diagnostic disable: duplicate-set-field
if GetResourceState('qb-doorlock') ~= 'started' then return end
if GetResourceState('qb-doorlock') == 'missing' then return end
Doorlock = Doorlock or {}
+1 -1
View File
@@ -1,5 +1,5 @@
---@diagnostic disable: duplicate-set-field
if GetResourceState('rcore_doorlock') ~= 'started' then return end
if GetResourceState('rcore_doorlock') == 'missing' then return end
Doorlock = Doorlock or {}
+1 -1
View File
@@ -1,5 +1,5 @@
---@diagnostic disable: duplicate-set-field
if GetResourceState('rcore_doorlock') ~= 'started' then return end
if GetResourceState('rcore_doorlock') == 'missing' then return end
Doorlock = Doorlock or {}
+1
View File
@@ -1,5 +1,6 @@
---@diagnostic disable: duplicate-set-field
if GetResourceState('es_extended') ~= 'started' then return end
Prints = Prints or Require("lib/utility/shared/prints.lua")
ESX = exports["es_extended"]:getSharedObject()
+3 -3
View File
@@ -2,9 +2,11 @@
if GetResourceState('qb-core') ~= 'started' then return end
if GetResourceState('qbx_core') == 'started' then return end
Framework = Framework or {}
QBCore = exports['qb-core']:GetCoreObject()
Framework = Framework or {}
Framework.Shared = QBCore.Shared
---This will get the name of the framework being used (if a supported framework).
---@return string
@@ -160,8 +162,6 @@ Framework.GetIsPlayerDead = function()
return playerData.metadata["isdead"] or playerData.metadata["inlaststand"]
end
Framework.Shared = QBCore.Shared
RegisterNetEvent('QBCore:Client:OnPlayerLoaded', function()
Wait(1500)
TriggerEvent('community_bridge:Client:OnPlayerLoaded')
+3 -1
View File
@@ -2,10 +2,12 @@
if GetResourceState('qb-core') ~= 'started' then return end
if GetResourceState('qbx_core') == 'started' then return end
Framework = Framework or {}
QBCore = exports['qb-core']:GetCoreObject()
Framework = Framework or {}
Framework.Shared = QBCore.Shared
Framework.GetFrameworkName = function()
return 'qb-core'
end
+2 -2
View File
@@ -1,10 +1,10 @@
---@diagnostic disable: duplicate-set-field
if GetResourceState('qbx_core') ~= 'started' then return end
local QBox = exports.qbx_core
Framework = Framework or {}
local QBox = exports.qbx_core
---Returns the name of the framework being used (if a supported framework).
---@return string
Framework.GetFrameworkName = function()
+1 -3
View File
@@ -1,7 +1,5 @@
local resourceName = "BigDaddy-Fuel"
local configValue = BridgeClientConfig.Fuel
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
Fuel = Fuel or {}
---This will get the name of the Fuel being used (if a supported Fuel).
+1 -3
View File
@@ -1,7 +1,5 @@
local resourceName = "cdn-fuel"
local configValue = BridgeClientConfig.Fuel
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
Fuel = Fuel or {}
---This will get the name of the Fuel being used (if a supported Fuel).
+1 -3
View File
@@ -1,7 +1,5 @@
local resourceName = "esx-sna-fuel"
local configValue = BridgeClientConfig.Fuel
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
Fuel = Fuel or {}
---This will get the name of the Fuel being used (if a supported Fuel).
+1 -3
View File
@@ -1,8 +1,6 @@
---@diagnostic disable: duplicate-set-field
local resourceName = "lc_fuel"
local configValue = BridgeClientConfig.Fuel
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
Fuel = Fuel or {}
---This will get the name of the Fuel being used (if a supported Fuel).
+1 -3
View File
@@ -1,7 +1,5 @@
local resourceName = "LegacyFuel"
local configValue = BridgeClientConfig.Fuel
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
Fuel = Fuel or {}
---This will get the name of the Fuel being used (if a supported Fuel).
+1 -3
View File
@@ -1,7 +1,5 @@
local resourceName = "okokGasStation"
local configValue = BridgeClientConfig.Fuel
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
Fuel = Fuel or {}
---This will get the name of the Fuel being used (if a supported Fuel).
+1 -3
View File
@@ -1,7 +1,5 @@
local resourceName = "ox_fuel"
local configValue = BridgeClientConfig.Fuel
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
Fuel = Fuel or {}
---This will get the name of the Fuel being used (if a supported Fuel).
+1 -3
View File
@@ -1,7 +1,5 @@
local resourceName = "ps-fuel"
local configValue = BridgeClientConfig.Fuel
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
Fuel = Fuel or {}
---This will get the name of the Fuel being used (if a supported Fuel).
+1 -3
View File
@@ -1,7 +1,5 @@
local resourceName = "qs-fuelstations"
local configValue = BridgeClientConfig.Fuel
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
Fuel = Fuel or {}
---This will get the name of the Fuel being used (if a supported Fuel).
+1 -3
View File
@@ -1,7 +1,5 @@
local resourceName = "Renewed-Fuel"
local configValue = BridgeClientConfig.Fuel
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
Fuel = Fuel or {}
---This will get the name of the Fuel being used (if a supported Fuel).
+1 -3
View File
@@ -1,7 +1,5 @@
local resourceName = "ti_fuel"
local configValue = BridgeClientConfig.Fuel
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
Fuel = Fuel or {}
---This will get the name of the Fuel being used (if a supported Fuel).
+1 -3
View File
@@ -1,7 +1,5 @@
local resourceName = "x-fuel"
local configValue = BridgeClientConfig.Fuel
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
Fuel = Fuel or {}
---This will get the name of the Fuel being used (if a supported Fuel).
-2
View File
@@ -4,14 +4,12 @@ HelpText = HelpText or {}
---@param message string
---@param _position string
---@return nil
---@diagnostic disable-next-line: duplicate-set-field
HelpText.ShowHelpText = function(message, _position)
return Framework.ShowHelpText(message, _position)
end
---This will hide the help text message on the screen
---@return nil
---@diagnostic disable-next-line: duplicate-set-field
HelpText.HideHelpText = function()
return Framework.HideHelpText()
end
-2
View File
@@ -4,14 +4,12 @@ HelpText = HelpText or {}
---@param src number
---@param message string
---@param position string
---@diagnostic disable-next-line: duplicate-set-field
HelpText.ShowHelpText = function(src, message, position)
TriggerClientEvent('community_bridge:Client:ShowHelpText', src, message, position)
end
---This will hide the help text message on the screen for the specified player
---@param src number
---@diagnostic disable-next-line: duplicate-set-field
HelpText.HideHelpText = function(src)
TriggerClientEvent('community_bridge:Client:HideHelpText', src)
end
+1 -1
View File
@@ -1,4 +1,4 @@
if GetResourceState('bcs-housing') ~= 'started' then return end
if GetResourceState('bcs-housing') == 'missing' then return end
Housing = Housing or {}
+1 -1
View File
@@ -1,4 +1,4 @@
if GetResourceState('bcs-housing') ~= 'started' then return end
if GetResourceState('bcs-housing') == 'missing' then return end
Housing = Housing or {}
+1 -1
View File
@@ -1,4 +1,4 @@
if GetResourceState('esx_property') ~= 'started' then return end
if GetResourceState('esx_property') == 'missing' then return end
Housing = Housing or {}
+1 -1
View File
@@ -1,4 +1,4 @@
if GetResourceState('esx_property') ~= 'started' then return end
if GetResourceState('esx_property') == 'missing' then return end
Housing = Housing or {}
+1 -1
View File
@@ -1,4 +1,4 @@
if GetResourceState('ps-housing') ~= 'started' then return end
if GetResourceState('ps-housing') == 'missing' then return end
Housing = Housing or {}
+1 -1
View File
@@ -1,4 +1,4 @@
if GetResourceState('ps-housing') ~= 'started' then return end
if GetResourceState('ps-housing') == 'missing' then return end
Housing = Housing or {}
+1 -1
View File
@@ -1,4 +1,4 @@
if GetResourceState('qb-appartments') ~= 'started' then return end
if GetResourceState('qb-appartments') == 'missing' then return end
Housing = Housing or {}
+1 -1
View File
@@ -1,4 +1,4 @@
if GetResourceState('qb-appartments') ~= 'started' then return end
if GetResourceState('qb-appartments') == 'missing' then return end
Housing = Housing or {}
+1 -1
View File
@@ -1,4 +1,4 @@
if GetResourceState('qb-houses') ~= 'started' then return end
if GetResourceState('qb-houses') == 'missing' then return end
Housing = Housing or {}
+1 -1
View File
@@ -1,4 +1,4 @@
if GetResourceState('qb-houses') ~= 'started' then return end
if GetResourceState('qb-houses') == 'missing' then return end
Housing = Housing or {}
+1 -1
View File
@@ -1,5 +1,5 @@
---@diagnostic disable: duplicate-set-field
if GetResourceState('Renewed-Banking') ~= 'started' then return end
if GetResourceState('Renewed-Banking') == 'missing' then return end
Managment = Managment or {}
---This will return a table with account details
+1 -1
View File
@@ -1,5 +1,5 @@
---@diagnostic disable: duplicate-set-field
if GetResourceState('fd_banking') ~= 'started' then return end
if GetResourceState('fd_banking') == 'missing' then return end
Managment = Managment or {}
local fd_banking = exports['fd_banking']
+1 -1
View File
@@ -1,5 +1,5 @@
---@diagnostic disable: duplicate-set-field
if GetResourceState('okokBanking') ~= 'started' then return end
if GetResourceState('okokBanking') == 'missing' then return end
Managment = Managment or {}
local okokBanking = exports['okokBanking']
+1 -1
View File
@@ -1,5 +1,5 @@
---@diagnostic disable: duplicate-set-field
if GetResourceState('qb-banking') ~= 'started' then return end
if GetResourceState('qb-banking') == 'missing' then return end
Managment = Managment or {}
local qbBanking = exports['qb-banking']
+1 -2
View File
@@ -1,6 +1,5 @@
local resourceName = "gksphone"
local configValue = BridgeSharedConfig.Phone
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
Phone = Phone or {}
+1 -2
View File
@@ -1,6 +1,5 @@
local resourceName = "gksphone"
local configValue = BridgeSharedConfig.Phone
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
Phone = Phone or {}
---comment
+1 -2
View File
@@ -1,6 +1,5 @@
local resourceName = "lb-phone"
local configValue = BridgeSharedConfig.Phone
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
Phone = Phone or {}
---comment
+1 -2
View File
@@ -1,6 +1,5 @@
local resourceName = "lb-phone"
local configValue = BridgeSharedConfig.Phone
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
Phone = Phone or {}
---@diagnostic disable-next-line: duplicate-set-field
+1 -3
View File
@@ -1,7 +1,5 @@
local resourceName = "okokPhone"
local configValue = BridgeSharedConfig.Phone
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
Phone = Phone or {}
---comment
+1 -2
View File
@@ -14,8 +14,7 @@
---@field data any
local resourceName = "okokPhone"
local configValue = BridgeSharedConfig.Phone
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
Phone = Phone or {}
---comment
+1 -2
View File
@@ -1,6 +1,5 @@
local resourceName = "qs-smartphone"
local configValue = BridgeSharedConfig.Phone
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
Phone = Phone or {}
---comment
+1 -2
View File
@@ -1,6 +1,5 @@
local resourceName = "qs-smartphone"
local configValue = BridgeSharedConfig.Phone
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
Phone = Phone or {}
---comment
+1 -3
View File
@@ -1,7 +1,5 @@
local resourceName = "ox_target"
local configValue = BridgeClientConfig.TargetSystem
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
local targetDebug = false
local function detectDebugEnabled()
+2 -3
View File
@@ -1,7 +1,6 @@
local resourceName = "qb-target"
local configValue = BridgeClientConfig.TargetSystem
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState('ox_target') == 'started' then return end -- this is for older versions of ox that supported the backwards compatability. As its depricated we dont want to touch that.
if GetResourceState(resourceName) == 'missing' then return end
if GetResourceState("ox_target") == 'started' then return end
local targetDebug = false
local function detectDebugEnabled()
+2 -4
View File
@@ -1,7 +1,6 @@
local resourceName = "sleepless_interact"
local configValue = BridgeClientConfig.TargetSystem
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
if GetResourceState("ox_target") == 'started' then return end
local targetDebug = false
local function detectDebugEnabled()
@@ -40,7 +39,6 @@ Target.AddGlobalPlayer = function(options)
end
Target.DisableTargeting = function(bool)
--sleepless_interact:disableTargeting(bool)
sleepless_interact:disableInteract(bool)
end
@@ -1,7 +1,5 @@
local resourceName = "F_RealCarKeysSystem"
local configValue = BridgeClientConfig.VehicleKey
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
VehicleKey = VehicleKey or {}
VehicleKey.GiveKeys = function(vehicle, plate)
@@ -1,6 +1,5 @@
local resourceName = "MrNewbVehicleKeys"
local configValue = BridgeClientConfig.VehicleKey
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
VehicleKey = VehicleKey or {}
@@ -1,6 +1,5 @@
local resourceName = "Renewed-Vehiclekeys"
local configValue = BridgeClientConfig.VehicleKey
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
VehicleKey = VehicleKey or {}
@@ -1,6 +1,5 @@
local resourceName = "cd_garage"
local configValue = BridgeClientConfig.VehicleKey
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
VehicleKey = VehicleKey or {}
+1 -3
View File
@@ -1,7 +1,5 @@
local resourceName = "jaksams_VehiclesKeys"
local configValue = BridgeClientConfig.VehicleKey
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
VehicleKey = VehicleKey or {}
@@ -1,7 +1,5 @@
local resourceName = "mk_vehiclekeys"
local configValue = BridgeClientConfig.VehicleKey
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
VehicleKey = VehicleKey or {}
VehicleKey.GiveKeys = function(vehicle, plate)
@@ -1,6 +1,5 @@
local resourceName = "mono_carkeys"
local configValue = BridgeClientConfig.VehicleKey
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
VehicleKey = VehicleKey or {}
VehicleKey.GiveKeys = function(vehicle, plate)
@@ -1,6 +1,5 @@
local resourceName = "okokGarage"
local configValue = BridgeClientConfig.VehicleKey
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
VehicleKey = VehicleKey or {}
@@ -1,6 +1,5 @@
local resourceName = "qb-vehiclekeys"
local configValue = BridgeClientConfig.VehicleKey
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
VehicleKey = VehicleKey or {}
@@ -1,6 +1,5 @@
local resourceName = "qbx_vehiclekeys"
local configValue = BridgeClientConfig.VehicleKey
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
VehicleKey = VehicleKey or {}
@@ -1,6 +1,5 @@
local resourceName = "qs-vehiclekeys"
local configValue = BridgeClientConfig.VehicleKey
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
VehicleKey = VehicleKey or {}
@@ -1,6 +1,5 @@
local resourceName = "t1ger_keys"
local configValue = BridgeClientConfig.VehicleKey
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
VehicleKey = VehicleKey or {}
@@ -1,6 +1,5 @@
local resourceName = "wasabi_carlock"
local configValue = BridgeClientConfig.VehicleKey
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
if GetResourceState(resourceName) == 'missing' then return end
VehicleKey = VehicleKey or {}
+1 -1
View File
@@ -1,4 +1,4 @@
if GetResourceState('cd_easytime') ~= 'started' then return end
if GetResourceState('cd_easytime') == 'missing' then return end
Weather = Weather or {}
---comment
@@ -1,4 +1,4 @@
if GetResourceState('qb-weathersync') ~= 'started' then return end
if GetResourceState('qb-weathersync') == 'missing' then return end
Weather = Weather or {}
---comment
@@ -1,4 +1,4 @@
if GetResourceState('Renewed-Weathersync') ~= 'started' then return end
if GetResourceState('Renewed-Weathersync') == 'missing' then return end
Weather = Weather or {}
---comment