Skip to content

Commit

Permalink
refactor: update ox_lib dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Apr 24, 2023
1 parent ad4ba27 commit 31bb084
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ local function registerCommands()
return client.closeInventory()
end

local closest = lib.points.closest()
local closest = lib.points.getClosestPoint()

if closest and closest.currentDistance < 1.2 and (not closest.instance or closest.instance == currentInstance) then
if closest.inv == 'crafting' then
Expand Down
2 changes: 1 addition & 1 deletion modules/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ local success, msg = lib.checkDependency('oxmysql', '2.4.0')

if not success then return spamError(msg) end

success, msg = lib.checkDependency('ox_lib', '3.0.0')
success, msg = lib.checkDependency('ox_lib', '3.2.0')

if not success then spamError(msg) end

Expand Down
4 changes: 1 addition & 3 deletions modules/weapon/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ function Weapon.Equip(item, data)
local playerPed = cache.ped
local coords = GetEntityCoords(playerPed, true)

RequestWeaponAsset(data.hash, 31, 0)

while not HasWeaponAssetLoaded(data.hash) do Wait(0) end
lib.requestWeaponAsset(data.hash)

if client.weaponanims then
if cache.vehicle and vehicleIsCycle(cache.vehicle) then
Expand Down

0 comments on commit 31bb084

Please sign in to comment.