From df9463399866652a5472f2559d09290f8248f3c5 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Tue, 24 May 2022 15:13:17 +1000 Subject: [PATCH] tweak(interface/progress): invBusy state For ox_inventory. Also removed an used table. --- fxmanifest.lua | 2 +- resource/interface/client/progress.lua | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/fxmanifest.lua b/fxmanifest.lua index 6569873..9c32b12 100644 --- a/fxmanifest.lua +++ b/fxmanifest.lua @@ -23,7 +23,7 @@ game 'gta5' --[[ Resource Information ]]-- name 'ox_lib' author 'Linden' -version '2.3.2' +version '2.3.3' repository 'https://github.com/overextended/ox_lib' description 'A library of shared functions to utilise in other resources.' diff --git a/resource/interface/client/progress.lua b/resource/interface/client/progress.lua index 992b3ba..bd9fef6 100644 --- a/resource/interface/client/progress.lua +++ b/resource/interface/client/progress.lua @@ -1,7 +1,7 @@ local progress local DisableControlAction = DisableControlAction local DisablePlayerFiring = DisablePlayerFiring -local disable = {} +local playerState = LocalPlayer.state local function createProp(prop) lib.requestModel(prop.model) @@ -12,6 +12,7 @@ local function createProp(prop) end local function startProgress(data) + playerState.invBusy = true progress = data if data.anim then @@ -91,8 +92,8 @@ local function startProgress(data) end end + playerState.invBusy = false local cancel = progress == false - table.wipe(disable) progress = nil if cancel then