mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 08:13:21 +00:00
probably a better way but oh well
This commit is contained in:
@@ -27,6 +27,10 @@ local function Progressbar(message,length,Options)
|
||||
type = "Close"
|
||||
}))
|
||||
le = 0
|
||||
ClearPedTasks(ESX.PlayerData.ped)
|
||||
if Options.FreezePlayer then FreezeEntityPosition(PlayerPedId(), false) end
|
||||
if Options.onFinish then Options.onFinish() end
|
||||
InProgress = false
|
||||
Options.onCancel()
|
||||
break
|
||||
end
|
||||
@@ -47,3 +51,4 @@ local function Progressbar(message,length,Options)
|
||||
end
|
||||
|
||||
exports('Progressbar', Progressbar)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user