Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Commit 355f6e7

Browse files
committed
fix(client): prevent ammo and component use when no weapon is equipped
1 parent ab02811 commit 355f6e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

client.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ local function useSlot(slot)
360360
elseif data.allowArmed then
361361
useItem(data)
362362
end
363-
else
363+
elseif not data.ammo and not data.component then
364364
useItem(data)
365365
end
366366
end

fxmanifest.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ game 'gta5'
77
--[[ Resource Information ]]--
88
name 'ox_inventory'
99
author 'Overextended'
10-
version '2.7.2'
10+
version '2.7.3'
1111
repository 'https://github.com/overextended/ox_inventory'
1212
description 'What even is an "ESX.Items" anyway?'
1313

0 commit comments

Comments
 (0)