Skip to content

Commit

Permalink
fix(client): prevent ammo and component use when no weapon is equipped
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Apr 4, 2022
1 parent ab02811 commit 355f6e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ local function useSlot(slot)
elseif data.allowArmed then
useItem(data)
end
else
elseif not data.ammo and not data.component then
useItem(data)
end
end
Expand Down
2 changes: 1 addition & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ game 'gta5'
--[[ Resource Information ]]--
name 'ox_inventory'
author 'Overextended'
version '2.7.2'
version '2.7.3'
repository 'https://github.com/overextended/ox_inventory'
description 'What even is an "ESX.Items" anyway?'

Expand Down

0 comments on commit 355f6e7

Please sign in to comment.