Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion resource/interface/client/progress.lua
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ local function startProgress(data)
end

playerState.invBusy = false
local duration = progress ~= false and GetGameTimer() - startTime + 100 -- give slight leeway
local timeOffset = (data.duration / 1000) * 20 -- try to match NUI duration with the game timer as quick fix
local duration = progress ~= false and (GetGameTimer() - startTime + timeOffset) or 0

if progress == false or duration <= data.duration then
SendNUIMessage({ action = 'progressCancel' })
Expand Down