esx_progressbar

MLO-uri, interioare, hărți optimizate și asset-uri pentru stream.
Post Reply
User avatar
greenie
Full Member
Full Member
Posts: 4444
Joined: Sun Nov 21, 2021 4:55 pm
Jucator SA:MP ?: Nu
Nick:: greenie
Jucator CS ?: Da

esx_progressbar

Post by greenie »

The Progress bar system used by es_extended Only available on clientside

ESX.Progressbar
Display a progressbar

Arguments

text: string
The text on the progressbar.
length: number
The lenght of the progressbar in ms
Options: table
The progressbar options
animation: table
A table with animation data
type: string
anim or scenario
lib: string
The animation lib
dict: string
The animation dict
FreezePlayer: boolean
Should the player be frozen?
onFinish: function
A function that will be executed on finish
onCancel: function
A function that will be executed on cancel

ESX Example
ESX.Progressbar('test', 25000,{
FreezePlayer = false,
animation ={
type = 'anim',
dict = 'mini@prostitutes@sexlow_veh',
lib ='low_car_sex_to_prop_p2_player'
},
onFinish = function()
-- Code that should run when finished
end, onCancel = function()
-- Code that should run when progressbar was cancelled
end
})
Export Example
exports['esx_progressbar']:Progressbar('test', 25000, {
FreezePlayer = false,
animation ={
type = 'anim',
dict = 'mini@prostitutes@sexlow_veh',
lib ='low_car_sex_to_prop_p2_player'
},
onFinish = function()
-- Code that should run when finished
end, onCancel = function()
-- Code that should run when progressbar was cancelled
end
})
ESX.CancelProgressbar
Cancel the current shown progressbar

ESX Example

ESX.CancelProgressbar()
Export Example

exports['esx_progressbar']:CancelProgressbar()
𝑴𝒂𝒚𝒃𝒆 𝒕𝒉𝒆 𝑬𝒂𝒓𝒕𝒉 𝒊𝒔 𝒕𝒉𝒆 𝑯𝒆𝒍𝒍 𝒐𝒇 𝑨𝒏𝒐𝒕𝒉𝒆𝒓 𝑷𝒍𝒂𝒏𝒆𝒕... ☢️

✅ GAZDUIRE JOCURI / VPS / GAZDUIRE WEB / SERVERE DEDICATE - Stock NELIMITAT / Valabil comandati pe https://www.zonek.ro/
Post Reply

Return to “Server Resources”