Skip to content

Commit

Permalink
add qbox playerdata shared script
Browse files Browse the repository at this point in the history
  • Loading branch information
Coffeelot committed Sep 21, 2024
1 parent 80283cf commit 4134a08
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion bridge/client/qbox.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ 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()

RegisterNetEvent("QBX:Client:OnPlayerLoaded", function()
Expand Down
4 changes: 1 addition & 3 deletions bridge/server/qbox.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
if GetResourceState('qbx_core') ~= 'started' then return end

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

QBX.Functions.CreateUseableItem(Config.ItemName.gps, function(source, item)
exports.qbx_core:CreateUseableItem(Config.ItemName.gps, function(source, item)
openRacingApp(source)
end)

Expand Down
2 changes: 1 addition & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ shared_scripts {
'locales/en.lua',
'config.lua',
'@ox_lib/init.lua',
'@qbx_core/modules/playerdata.lua'
}

client_scripts {
Expand All @@ -37,7 +38,6 @@ files {
}

dependencies {
'qb-core',
'cw-performance'
}

Expand Down

0 comments on commit 4134a08

Please sign in to comment.