should resolve start order issues
This commit is contained in:
1 parent
f0feadf268
commit
68e81b720a
86 files changed
+113
-146
No files matched your search
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
if GetResourceState('bub-mdt') ~= 'started' then return end
|
if GetResourceState('bub-mdt') == 'missing' then return end
|
||||||
Dispatch = Dispatch or {}
|
Dispatch = Dispatch or {}
|
||||||
|
|
||||||
Dispatch.SendAlert = function(data)
|
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 = Dispatch or {}
|
||||||
|
|
||||||
Dispatch.SendAlert = function(data)
|
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 {}
|
Dispatch = Dispatch or {}
|
||||||
|
|
||||||
return Dispatch
|
return Dispatch
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
if GetResourceState('lb-tablet') ~= 'started' then return end
|
if GetResourceState('lb-tablet') == 'missing' then return end
|
||||||
Dispatch = Dispatch or {}
|
Dispatch = Dispatch or {}
|
||||||
|
|
||||||
local function getPriorityLevel(priority)
|
local function getPriorityLevel(priority)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
if GetResourceState('lb-tablet') ~= 'started' then return end
|
if GetResourceState('lb-tablet') == 'missing' then return end
|
||||||
Dispatch = Dispatch or {}
|
Dispatch = Dispatch or {}
|
||||||
|
|
||||||
RegisterNetEvent("community_bridge:server:dispatch:sendAlert", function(data)
|
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 = Dispatch or {}
|
||||||
|
|
||||||
Dispatch.SendAlert = function(data)
|
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 = Dispatch or {}
|
||||||
|
|
||||||
return Dispatch
|
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
|
if GetResourceState('lb-tablet') == 'started' then return end
|
||||||
Dispatch = Dispatch or {}
|
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
|
if GetResourceState('lb-tablet') == 'started' then return end
|
||||||
Dispatch = Dispatch or {}
|
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 = Dispatch or {}
|
||||||
|
|
||||||
Dispatch.SendAlert = function(data)
|
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 {}
|
Dispatch = Dispatch or {}
|
||||||
|
|
||||||
return Dispatch
|
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 = Dispatch or {}
|
||||||
|
|
||||||
Dispatch.SendAlert = function(data)
|
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 {}
|
Dispatch = Dispatch or {}
|
||||||
|
|
||||||
RegisterNetEvent("community_bridge:server:dispatch:sendAlert", function(data)
|
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 = Dispatch or {}
|
||||||
|
|
||||||
Dispatch.SendAlert = function(data)
|
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 = Dispatch or {}
|
||||||
|
|
||||||
return Dispatch
|
return Dispatch
|
||||||
@@ -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
|
||||||
@@ -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,5 +1,5 @@
|
|||||||
---@diagnostic disable: duplicate-set-field
|
---@diagnostic disable: duplicate-set-field
|
||||||
if GetResourceState('doors_creator') ~= 'started' then return end
|
if GetResourceState('doors_creator') == 'missing' then return end
|
||||||
|
|
||||||
Doorlock = Doorlock or {}
|
Doorlock = Doorlock or {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---@diagnostic disable: duplicate-set-field
|
---@diagnostic disable: duplicate-set-field
|
||||||
if GetResourceState('doors_creator') ~= 'started' then return end
|
if GetResourceState('doors_creator') == 'missing' then return end
|
||||||
|
|
||||||
Doorlock = Doorlock or {}
|
Doorlock = Doorlock or {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---@diagnostic disable: duplicate-set-field
|
---@diagnostic disable: duplicate-set-field
|
||||||
if GetResourceState('ox_doorlock') ~= 'started' then return end
|
if GetResourceState('ox_doorlock') == 'missing' then return end
|
||||||
|
|
||||||
Doorlock = Doorlock or {}
|
Doorlock = Doorlock or {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---@diagnostic disable: duplicate-set-field
|
---@diagnostic disable: duplicate-set-field
|
||||||
if GetResourceState('ox_doorlock') ~= 'started' then return end
|
if GetResourceState('ox_doorlock') == 'missing' then return end
|
||||||
|
|
||||||
Doorlock = Doorlock or {}
|
Doorlock = Doorlock or {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---@diagnostic disable: duplicate-set-field
|
---@diagnostic disable: duplicate-set-field
|
||||||
if GetResourceState('qb-doorlock') ~= 'started' then return end
|
if GetResourceState('qb-doorlock') == 'missing' then return end
|
||||||
|
|
||||||
Doorlock = Doorlock or {}
|
Doorlock = Doorlock or {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---@diagnostic disable: duplicate-set-field
|
---@diagnostic disable: duplicate-set-field
|
||||||
if GetResourceState('qb-doorlock') ~= 'started' then return end
|
if GetResourceState('qb-doorlock') == 'missing' then return end
|
||||||
|
|
||||||
Doorlock = Doorlock or {}
|
Doorlock = Doorlock or {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---@diagnostic disable: duplicate-set-field
|
---@diagnostic disable: duplicate-set-field
|
||||||
if GetResourceState('rcore_doorlock') ~= 'started' then return end
|
if GetResourceState('rcore_doorlock') == 'missing' then return end
|
||||||
|
|
||||||
Doorlock = Doorlock or {}
|
Doorlock = Doorlock or {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---@diagnostic disable: duplicate-set-field
|
---@diagnostic disable: duplicate-set-field
|
||||||
if GetResourceState('rcore_doorlock') ~= 'started' then return end
|
if GetResourceState('rcore_doorlock') == 'missing' then return end
|
||||||
|
|
||||||
Doorlock = Doorlock or {}
|
Doorlock = Doorlock or {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
---@diagnostic disable: duplicate-set-field
|
---@diagnostic disable: duplicate-set-field
|
||||||
if GetResourceState('es_extended') ~= 'started' then return end
|
if GetResourceState('es_extended') ~= 'started' then return end
|
||||||
|
|
||||||
Prints = Prints or Require("lib/utility/shared/prints.lua")
|
Prints = Prints or Require("lib/utility/shared/prints.lua")
|
||||||
|
|
||||||
ESX = exports["es_extended"]:getSharedObject()
|
ESX = exports["es_extended"]:getSharedObject()
|
||||||
|
|||||||
@@ -2,9 +2,11 @@
|
|||||||
if GetResourceState('qb-core') ~= 'started' then return end
|
if GetResourceState('qb-core') ~= 'started' then return end
|
||||||
if GetResourceState('qbx_core') == 'started' then return end
|
if GetResourceState('qbx_core') == 'started' then return end
|
||||||
|
|
||||||
|
Framework = Framework or {}
|
||||||
|
|
||||||
QBCore = exports['qb-core']:GetCoreObject()
|
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).
|
---This will get the name of the framework being used (if a supported framework).
|
||||||
---@return string
|
---@return string
|
||||||
@@ -160,8 +162,6 @@ Framework.GetIsPlayerDead = function()
|
|||||||
return playerData.metadata["isdead"] or playerData.metadata["inlaststand"]
|
return playerData.metadata["isdead"] or playerData.metadata["inlaststand"]
|
||||||
end
|
end
|
||||||
|
|
||||||
Framework.Shared = QBCore.Shared
|
|
||||||
|
|
||||||
RegisterNetEvent('QBCore:Client:OnPlayerLoaded', function()
|
RegisterNetEvent('QBCore:Client:OnPlayerLoaded', function()
|
||||||
Wait(1500)
|
Wait(1500)
|
||||||
TriggerEvent('community_bridge:Client:OnPlayerLoaded')
|
TriggerEvent('community_bridge:Client:OnPlayerLoaded')
|
||||||
|
|||||||
@@ -2,10 +2,12 @@
|
|||||||
if GetResourceState('qb-core') ~= 'started' then return end
|
if GetResourceState('qb-core') ~= 'started' then return end
|
||||||
if GetResourceState('qbx_core') == 'started' then return end
|
if GetResourceState('qbx_core') == 'started' then return end
|
||||||
|
|
||||||
|
Framework = Framework or {}
|
||||||
|
|
||||||
QBCore = exports['qb-core']:GetCoreObject()
|
QBCore = exports['qb-core']:GetCoreObject()
|
||||||
|
|
||||||
Framework = Framework or {}
|
|
||||||
Framework.Shared = QBCore.Shared
|
Framework.Shared = QBCore.Shared
|
||||||
|
|
||||||
Framework.GetFrameworkName = function()
|
Framework.GetFrameworkName = function()
|
||||||
return 'qb-core'
|
return 'qb-core'
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
---@diagnostic disable: duplicate-set-field
|
---@diagnostic disable: duplicate-set-field
|
||||||
if GetResourceState('qbx_core') ~= 'started' then return end
|
if GetResourceState('qbx_core') ~= 'started' then return end
|
||||||
|
|
||||||
local QBox = exports.qbx_core
|
|
||||||
|
|
||||||
Framework = Framework or {}
|
Framework = Framework or {}
|
||||||
|
|
||||||
|
local QBox = exports.qbx_core
|
||||||
|
|
||||||
---Returns the name of the framework being used (if a supported framework).
|
---Returns the name of the framework being used (if a supported framework).
|
||||||
---@return string
|
---@return string
|
||||||
Framework.GetFrameworkName = function()
|
Framework.GetFrameworkName = function()
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
local resourceName = "BigDaddy-Fuel"
|
local resourceName = "BigDaddy-Fuel"
|
||||||
local configValue = BridgeClientConfig.Fuel
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
|
|
||||||
Fuel = Fuel or {}
|
Fuel = Fuel or {}
|
||||||
|
|
||||||
---This will get the name of the Fuel being used (if a supported Fuel).
|
---This will get the name of the Fuel being used (if a supported Fuel).
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
local resourceName = "cdn-fuel"
|
local resourceName = "cdn-fuel"
|
||||||
local configValue = BridgeClientConfig.Fuel
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
|
|
||||||
Fuel = Fuel or {}
|
Fuel = Fuel or {}
|
||||||
|
|
||||||
---This will get the name of the Fuel being used (if a supported Fuel).
|
---This will get the name of the Fuel being used (if a supported Fuel).
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
local resourceName = "esx-sna-fuel"
|
local resourceName = "esx-sna-fuel"
|
||||||
local configValue = BridgeClientConfig.Fuel
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
|
|
||||||
Fuel = Fuel or {}
|
Fuel = Fuel or {}
|
||||||
|
|
||||||
---This will get the name of the Fuel being used (if a supported Fuel).
|
---This will get the name of the Fuel being used (if a supported Fuel).
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
---@diagnostic disable: duplicate-set-field
|
---@diagnostic disable: duplicate-set-field
|
||||||
local resourceName = "lc_fuel"
|
local resourceName = "lc_fuel"
|
||||||
local configValue = BridgeClientConfig.Fuel
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
|
|
||||||
Fuel = Fuel or {}
|
Fuel = Fuel or {}
|
||||||
|
|
||||||
---This will get the name of the Fuel being used (if a supported Fuel).
|
---This will get the name of the Fuel being used (if a supported Fuel).
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
local resourceName = "LegacyFuel"
|
local resourceName = "LegacyFuel"
|
||||||
local configValue = BridgeClientConfig.Fuel
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
|
|
||||||
Fuel = Fuel or {}
|
Fuel = Fuel or {}
|
||||||
|
|
||||||
---This will get the name of the Fuel being used (if a supported Fuel).
|
---This will get the name of the Fuel being used (if a supported Fuel).
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
local resourceName = "okokGasStation"
|
local resourceName = "okokGasStation"
|
||||||
local configValue = BridgeClientConfig.Fuel
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
|
|
||||||
Fuel = Fuel or {}
|
Fuel = Fuel or {}
|
||||||
|
|
||||||
---This will get the name of the Fuel being used (if a supported Fuel).
|
---This will get the name of the Fuel being used (if a supported Fuel).
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
local resourceName = "ox_fuel"
|
local resourceName = "ox_fuel"
|
||||||
local configValue = BridgeClientConfig.Fuel
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
|
|
||||||
Fuel = Fuel or {}
|
Fuel = Fuel or {}
|
||||||
|
|
||||||
---This will get the name of the Fuel being used (if a supported Fuel).
|
---This will get the name of the Fuel being used (if a supported Fuel).
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
local resourceName = "ps-fuel"
|
local resourceName = "ps-fuel"
|
||||||
local configValue = BridgeClientConfig.Fuel
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
|
|
||||||
Fuel = Fuel or {}
|
Fuel = Fuel or {}
|
||||||
|
|
||||||
---This will get the name of the Fuel being used (if a supported Fuel).
|
---This will get the name of the Fuel being used (if a supported Fuel).
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
local resourceName = "qs-fuelstations"
|
local resourceName = "qs-fuelstations"
|
||||||
local configValue = BridgeClientConfig.Fuel
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
|
|
||||||
Fuel = Fuel or {}
|
Fuel = Fuel or {}
|
||||||
|
|
||||||
---This will get the name of the Fuel being used (if a supported Fuel).
|
---This will get the name of the Fuel being used (if a supported Fuel).
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
local resourceName = "Renewed-Fuel"
|
local resourceName = "Renewed-Fuel"
|
||||||
local configValue = BridgeClientConfig.Fuel
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
|
|
||||||
Fuel = Fuel or {}
|
Fuel = Fuel or {}
|
||||||
|
|
||||||
---This will get the name of the Fuel being used (if a supported Fuel).
|
---This will get the name of the Fuel being used (if a supported Fuel).
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
local resourceName = "ti_fuel"
|
local resourceName = "ti_fuel"
|
||||||
local configValue = BridgeClientConfig.Fuel
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
|
|
||||||
Fuel = Fuel or {}
|
Fuel = Fuel or {}
|
||||||
|
|
||||||
---This will get the name of the Fuel being used (if a supported Fuel).
|
---This will get the name of the Fuel being used (if a supported Fuel).
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
local resourceName = "x-fuel"
|
local resourceName = "x-fuel"
|
||||||
local configValue = BridgeClientConfig.Fuel
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
|
|
||||||
Fuel = Fuel or {}
|
Fuel = Fuel or {}
|
||||||
|
|
||||||
---This will get the name of the Fuel being used (if a supported Fuel).
|
---This will get the name of the Fuel being used (if a supported Fuel).
|
||||||
|
|||||||
@@ -4,14 +4,12 @@ HelpText = HelpText or {}
|
|||||||
---@param message string
|
---@param message string
|
||||||
---@param _position string
|
---@param _position string
|
||||||
---@return nil
|
---@return nil
|
||||||
---@diagnostic disable-next-line: duplicate-set-field
|
|
||||||
HelpText.ShowHelpText = function(message, _position)
|
HelpText.ShowHelpText = function(message, _position)
|
||||||
return Framework.ShowHelpText(message, _position)
|
return Framework.ShowHelpText(message, _position)
|
||||||
end
|
end
|
||||||
|
|
||||||
---This will hide the help text message on the screen
|
---This will hide the help text message on the screen
|
||||||
---@return nil
|
---@return nil
|
||||||
---@diagnostic disable-next-line: duplicate-set-field
|
|
||||||
HelpText.HideHelpText = function()
|
HelpText.HideHelpText = function()
|
||||||
return Framework.HideHelpText()
|
return Framework.HideHelpText()
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -4,14 +4,12 @@ HelpText = HelpText or {}
|
|||||||
---@param src number
|
---@param src number
|
||||||
---@param message string
|
---@param message string
|
||||||
---@param position string
|
---@param position string
|
||||||
---@diagnostic disable-next-line: duplicate-set-field
|
|
||||||
HelpText.ShowHelpText = function(src, message, position)
|
HelpText.ShowHelpText = function(src, message, position)
|
||||||
TriggerClientEvent('community_bridge:Client:ShowHelpText', src, message, position)
|
TriggerClientEvent('community_bridge:Client:ShowHelpText', src, message, position)
|
||||||
end
|
end
|
||||||
|
|
||||||
---This will hide the help text message on the screen for the specified player
|
---This will hide the help text message on the screen for the specified player
|
||||||
---@param src number
|
---@param src number
|
||||||
---@diagnostic disable-next-line: duplicate-set-field
|
|
||||||
HelpText.HideHelpText = function(src)
|
HelpText.HideHelpText = function(src)
|
||||||
TriggerClientEvent('community_bridge:Client:HideHelpText', src)
|
TriggerClientEvent('community_bridge:Client:HideHelpText', src)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
if GetResourceState('bcs-housing') ~= 'started' then return end
|
if GetResourceState('bcs-housing') == 'missing' then return end
|
||||||
|
|
||||||
Housing = Housing or {}
|
Housing = Housing or {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
if GetResourceState('bcs-housing') ~= 'started' then return end
|
if GetResourceState('bcs-housing') == 'missing' then return end
|
||||||
|
|
||||||
Housing = Housing or {}
|
Housing = Housing or {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
if GetResourceState('esx_property') ~= 'started' then return end
|
if GetResourceState('esx_property') == 'missing' then return end
|
||||||
|
|
||||||
Housing = Housing or {}
|
Housing = Housing or {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
if GetResourceState('esx_property') ~= 'started' then return end
|
if GetResourceState('esx_property') == 'missing' then return end
|
||||||
|
|
||||||
Housing = Housing or {}
|
Housing = Housing or {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
if GetResourceState('ps-housing') ~= 'started' then return end
|
if GetResourceState('ps-housing') == 'missing' then return end
|
||||||
|
|
||||||
Housing = Housing or {}
|
Housing = Housing or {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
if GetResourceState('ps-housing') ~= 'started' then return end
|
if GetResourceState('ps-housing') == 'missing' then return end
|
||||||
|
|
||||||
Housing = Housing or {}
|
Housing = Housing or {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
if GetResourceState('qb-appartments') ~= 'started' then return end
|
if GetResourceState('qb-appartments') == 'missing' then return end
|
||||||
|
|
||||||
Housing = Housing or {}
|
Housing = Housing or {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
if GetResourceState('qb-appartments') ~= 'started' then return end
|
if GetResourceState('qb-appartments') == 'missing' then return end
|
||||||
|
|
||||||
Housing = Housing or {}
|
Housing = Housing or {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
if GetResourceState('qb-houses') ~= 'started' then return end
|
if GetResourceState('qb-houses') == 'missing' then return end
|
||||||
|
|
||||||
Housing = Housing or {}
|
Housing = Housing or {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
if GetResourceState('qb-houses') ~= 'started' then return end
|
if GetResourceState('qb-houses') == 'missing' then return end
|
||||||
|
|
||||||
Housing = Housing or {}
|
Housing = Housing or {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---@diagnostic disable: duplicate-set-field
|
---@diagnostic disable: duplicate-set-field
|
||||||
if GetResourceState('Renewed-Banking') ~= 'started' then return end
|
if GetResourceState('Renewed-Banking') == 'missing' then return end
|
||||||
Managment = Managment or {}
|
Managment = Managment or {}
|
||||||
|
|
||||||
---This will return a table with account details
|
---This will return a table with account details
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---@diagnostic disable: duplicate-set-field
|
---@diagnostic disable: duplicate-set-field
|
||||||
if GetResourceState('fd_banking') ~= 'started' then return end
|
if GetResourceState('fd_banking') == 'missing' then return end
|
||||||
Managment = Managment or {}
|
Managment = Managment or {}
|
||||||
|
|
||||||
local fd_banking = exports['fd_banking']
|
local fd_banking = exports['fd_banking']
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---@diagnostic disable: duplicate-set-field
|
---@diagnostic disable: duplicate-set-field
|
||||||
if GetResourceState('okokBanking') ~= 'started' then return end
|
if GetResourceState('okokBanking') == 'missing' then return end
|
||||||
Managment = Managment or {}
|
Managment = Managment or {}
|
||||||
|
|
||||||
local okokBanking = exports['okokBanking']
|
local okokBanking = exports['okokBanking']
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---@diagnostic disable: duplicate-set-field
|
---@diagnostic disable: duplicate-set-field
|
||||||
if GetResourceState('qb-banking') ~= 'started' then return end
|
if GetResourceState('qb-banking') == 'missing' then return end
|
||||||
Managment = Managment or {}
|
Managment = Managment or {}
|
||||||
|
|
||||||
local qbBanking = exports['qb-banking']
|
local qbBanking = exports['qb-banking']
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
local resourceName = "gksphone"
|
local resourceName = "gksphone"
|
||||||
local configValue = BridgeSharedConfig.Phone
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
|
|
||||||
Phone = Phone or {}
|
Phone = Phone or {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
local resourceName = "gksphone"
|
local resourceName = "gksphone"
|
||||||
local configValue = BridgeSharedConfig.Phone
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
Phone = Phone or {}
|
Phone = Phone or {}
|
||||||
|
|
||||||
---comment
|
---comment
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
local resourceName = "lb-phone"
|
local resourceName = "lb-phone"
|
||||||
local configValue = BridgeSharedConfig.Phone
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
Phone = Phone or {}
|
Phone = Phone or {}
|
||||||
|
|
||||||
---comment
|
---comment
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
local resourceName = "lb-phone"
|
local resourceName = "lb-phone"
|
||||||
local configValue = BridgeSharedConfig.Phone
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
Phone = Phone or {}
|
Phone = Phone or {}
|
||||||
|
|
||||||
---@diagnostic disable-next-line: duplicate-set-field
|
---@diagnostic disable-next-line: duplicate-set-field
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
local resourceName = "okokPhone"
|
local resourceName = "okokPhone"
|
||||||
local configValue = BridgeSharedConfig.Phone
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
|
|
||||||
Phone = Phone or {}
|
Phone = Phone or {}
|
||||||
|
|
||||||
---comment
|
---comment
|
||||||
|
|||||||
@@ -14,8 +14,7 @@
|
|||||||
---@field data any
|
---@field data any
|
||||||
|
|
||||||
local resourceName = "okokPhone"
|
local resourceName = "okokPhone"
|
||||||
local configValue = BridgeSharedConfig.Phone
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
Phone = Phone or {}
|
Phone = Phone or {}
|
||||||
|
|
||||||
---comment
|
---comment
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
local resourceName = "qs-smartphone"
|
local resourceName = "qs-smartphone"
|
||||||
local configValue = BridgeSharedConfig.Phone
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
Phone = Phone or {}
|
Phone = Phone or {}
|
||||||
|
|
||||||
---comment
|
---comment
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
local resourceName = "qs-smartphone"
|
local resourceName = "qs-smartphone"
|
||||||
local configValue = BridgeSharedConfig.Phone
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
Phone = Phone or {}
|
Phone = Phone or {}
|
||||||
|
|
||||||
---comment
|
---comment
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
local resourceName = "ox_target"
|
local resourceName = "ox_target"
|
||||||
local configValue = BridgeClientConfig.TargetSystem
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
|
|
||||||
|
|
||||||
local targetDebug = false
|
local targetDebug = false
|
||||||
local function detectDebugEnabled()
|
local function detectDebugEnabled()
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
local resourceName = "qb-target"
|
local resourceName = "qb-target"
|
||||||
local configValue = BridgeClientConfig.TargetSystem
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
if GetResourceState("ox_target") == 'started' 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.
|
|
||||||
|
|
||||||
local targetDebug = false
|
local targetDebug = false
|
||||||
local function detectDebugEnabled()
|
local function detectDebugEnabled()
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
local resourceName = "sleepless_interact"
|
local resourceName = "sleepless_interact"
|
||||||
local configValue = BridgeClientConfig.TargetSystem
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
if GetResourceState("ox_target") == 'started' then return end
|
||||||
|
|
||||||
|
|
||||||
local targetDebug = false
|
local targetDebug = false
|
||||||
local function detectDebugEnabled()
|
local function detectDebugEnabled()
|
||||||
@@ -40,7 +39,6 @@ Target.AddGlobalPlayer = function(options)
|
|||||||
end
|
end
|
||||||
|
|
||||||
Target.DisableTargeting = function(bool)
|
Target.DisableTargeting = function(bool)
|
||||||
--sleepless_interact:disableTargeting(bool)
|
|
||||||
sleepless_interact:disableInteract(bool)
|
sleepless_interact:disableInteract(bool)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
local resourceName = "F_RealCarKeysSystem"
|
local resourceName = "F_RealCarKeysSystem"
|
||||||
local configValue = BridgeClientConfig.VehicleKey
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
|
|
||||||
VehicleKey = VehicleKey or {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
local resourceName = "MrNewbVehicleKeys"
|
local resourceName = "MrNewbVehicleKeys"
|
||||||
local configValue = BridgeClientConfig.VehicleKey
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
|
|
||||||
VehicleKey = VehicleKey or {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
local resourceName = "Renewed-Vehiclekeys"
|
local resourceName = "Renewed-Vehiclekeys"
|
||||||
local configValue = BridgeClientConfig.VehicleKey
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
|
|
||||||
VehicleKey = VehicleKey or {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
local resourceName = "cd_garage"
|
local resourceName = "cd_garage"
|
||||||
local configValue = BridgeClientConfig.VehicleKey
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
|
|
||||||
VehicleKey = VehicleKey or {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
local resourceName = "jaksams_VehiclesKeys"
|
local resourceName = "jaksams_VehiclesKeys"
|
||||||
local configValue = BridgeClientConfig.VehicleKey
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
|
|
||||||
|
|
||||||
VehicleKey = VehicleKey or {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
local resourceName = "mk_vehiclekeys"
|
local resourceName = "mk_vehiclekeys"
|
||||||
local configValue = BridgeClientConfig.VehicleKey
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
|
|
||||||
VehicleKey = VehicleKey or {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
local resourceName = "mono_carkeys"
|
local resourceName = "mono_carkeys"
|
||||||
local configValue = BridgeClientConfig.VehicleKey
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
|
|
||||||
VehicleKey = VehicleKey or {}
|
VehicleKey = VehicleKey or {}
|
||||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
local resourceName = "okokGarage"
|
local resourceName = "okokGarage"
|
||||||
local configValue = BridgeClientConfig.VehicleKey
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
|
|
||||||
VehicleKey = VehicleKey or {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
local resourceName = "qb-vehiclekeys"
|
local resourceName = "qb-vehiclekeys"
|
||||||
local configValue = BridgeClientConfig.VehicleKey
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
|
|
||||||
VehicleKey = VehicleKey or {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
local resourceName = "qbx_vehiclekeys"
|
local resourceName = "qbx_vehiclekeys"
|
||||||
local configValue = BridgeClientConfig.VehicleKey
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
|
|
||||||
VehicleKey = VehicleKey or {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
local resourceName = "qs-vehiclekeys"
|
local resourceName = "qs-vehiclekeys"
|
||||||
local configValue = BridgeClientConfig.VehicleKey
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
|
|
||||||
VehicleKey = VehicleKey or {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
local resourceName = "t1ger_keys"
|
local resourceName = "t1ger_keys"
|
||||||
local configValue = BridgeClientConfig.VehicleKey
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
|
|
||||||
VehicleKey = VehicleKey or {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
local resourceName = "wasabi_carlock"
|
local resourceName = "wasabi_carlock"
|
||||||
local configValue = BridgeClientConfig.VehicleKey
|
if GetResourceState(resourceName) == 'missing' then return end
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
||||||
|
|
||||||
VehicleKey = VehicleKey or {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
if GetResourceState('cd_easytime') ~= 'started' then return end
|
if GetResourceState('cd_easytime') == 'missing' then return end
|
||||||
Weather = Weather or {}
|
Weather = Weather or {}
|
||||||
|
|
||||||
---comment
|
---comment
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
if GetResourceState('qb-weathersync') ~= 'started' then return end
|
if GetResourceState('qb-weathersync') == 'missing' then return end
|
||||||
Weather = Weather or {}
|
Weather = Weather or {}
|
||||||
|
|
||||||
---comment
|
---comment
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
if GetResourceState('Renewed-Weathersync') ~= 'started' then return end
|
if GetResourceState('Renewed-Weathersync') == 'missing' then return end
|
||||||
Weather = Weather or {}
|
Weather = Weather or {}
|
||||||
|
|
||||||
---comment
|
---comment
|
||||||
|
|||||||
Reference in new issue
Block a user