[Име]: QB-Progressbar
[Как изглежда]: Прикаченa снимкa
[Линк за теглене]: Прикачен файл
[Как се слага]: 1. Влизате в папката "[standalone]" и триете стария "progressbar" и слагате този
Влизате в [qb]/qb-core/client/functions.lua и натискате ctrl+f и пишете progressbar и намирате това и после слагате на първия ред "--[[" и най-долу "--]]" и после давате един ред надолу и слгате това и сте готови
,
function QBCore.Functions.Progressbar(name, label, duration, useWhileDead, canCancel, disableControls, animation, prop, propTwo, onFinish, onCancel, icon)
if GetResourceState('progressbar') ~= 'started' then error('progressbar needs to be started in order for QBCore.Functions.Progressbar to work') end
exports['progressbar']:Progress({
name = name:lower(),
duration = duration,
label = label,
icon = icon,
useWhileDead = useWhileDead,
canCancel = canCancel,
controlDisables = disableControls,
animation = animation,
prop = prop,
propTwo = propTwo,
}, function(cancelled)
if not cancelled then
if onFinish then
onFinish()
end
else
if onCancel then
onCancel()
end
end
end)
end
Shared by Modrelease Bot