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