Skip to content

Commit

Permalink
fix(bridge/ox): imports
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Dec 12, 2023
1 parent 9eef225 commit 4a50f70
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 0 additions & 6 deletions modules/bridge/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,6 @@ function client.onLogout()
Weapon.Disarm()
end

if shared.framework == 'ox' then
CreateThread(function()
lib.load(('@ox_core.imports.%s'):format(lib.context))
end)
end

local success, result = pcall(lib.load, ('modules.bridge.%s.client'):format(shared.framework))

if not success then
Expand Down
2 changes: 2 additions & 0 deletions modules/bridge/ox/client.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
CreateThread(function() lib.load('@ox_core.imports.client') end)

RegisterNetEvent('ox:playerLogout', client.onLogout)

RegisterNetEvent('ox:setGroup', function(name, grade)
Expand Down
2 changes: 2 additions & 0 deletions modules/bridge/ox/server.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
CreateThread(function() lib.load('@ox_core.imports.server') end)

local Inventory = require 'modules.inventory.server'

AddEventHandler('ox:playerLogout', server.playerDropped)
Expand Down

0 comments on commit 4a50f70

Please sign in to comment.