mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
Feat: ESX.CancelProgressbar
This commit is contained in:
@@ -68,8 +68,16 @@ function ESX.SetPlayerData(key, val)
|
||||
end
|
||||
end
|
||||
|
||||
function ESX.Progressbar(...)
|
||||
return IsResourceFound('esx_progressbar') and exports['esx_progressbar']:Progressbar(...)
|
||||
---@param message string
|
||||
---@param length? number Timeout in milliseconds
|
||||
---@param options? ProgressBarOptions
|
||||
---@return boolean Success Whether the progress bar was successfully created or not
|
||||
function ESX.Progressbar(message, length, options)
|
||||
return IsResourceFound('esx_progressbar') and exports['esx_progressbar']:Progressbar(message, length, options)
|
||||
end
|
||||
|
||||
function ESX.CancelProgressbar()
|
||||
return IsResourceFound('esx_progressbar') and exports['esx_progressbar']:CancelProgressbar()
|
||||
end
|
||||
|
||||
function ESX.ShowNotification(message, notifyType, length)
|
||||
|
||||
@@ -31,6 +31,7 @@ end
|
||||
---@param message string
|
||||
---@param length? number Timeout in milliseconds
|
||||
---@param Options? ProgressBarOptions
|
||||
---@return boolean Success
|
||||
local function Progressbar(message, length, Options)
|
||||
if CurrentProgress then
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user