Skip to content

Commit

Permalink
fix: change check for qbx bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
Coffeelot committed Sep 21, 2024
1 parent d2e41df commit 80283cf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions bridge/client/esx.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
if GetResourceState('es_extended') ~= 'started' then return end
if Config.Debug then print('Using ESX bridge') end

ESX = exports['es_extended']:getSharedObject()

Expand Down
3 changes: 3 additions & 0 deletions bridge/client/qb.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
if GetResourceState('qb-core') ~= 'started' or GetResourceState('qbx_core') == 'started' then return end
if Config.Debug then print('Using QB bridge') end


local QBCore = exports['qb-core']:GetCoreObject()

RegisterNetEvent("QBCore:Client:OnPlayerLoaded", function()
Expand Down
5 changes: 4 additions & 1 deletion bridge/client/qbox.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
if GetResourceState('qb-core') == 'started' or GetResourceState('qbx_core') ~= 'started' then return end
if GetResourceState('qbx_core') ~= 'started' then return end

if Config.Debug then print('Using QBOX bridge') end

local QBX = exports['qbx_core']:GetCoreObject()
local VEHICLEHASHES = exports.qbx_core:GetVehiclesByHash()

Expand Down

0 comments on commit 80283cf

Please sign in to comment.