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
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()