From 355f6e7e5160250fc656e7288d9823bf9cdb43e4 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Tue, 5 Apr 2022 03:30:29 +1000 Subject: [PATCH] fix(client): prevent ammo and component use when no weapon is equipped --- client.lua | 2 +- fxmanifest.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client.lua b/client.lua index 8ab3da8949..75061e6a3b 100644 --- a/client.lua +++ b/client.lua @@ -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 diff --git a/fxmanifest.lua b/fxmanifest.lua index e000200e07..a357bc0208 100644 --- a/fxmanifest.lua +++ b/fxmanifest.lua @@ -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?'