Kann mir ggf. jemand helfen die Ausgabe von der Progressbar dieses Skripts auf das von ox lib umzuschreiben?
C
exports['pogressBar']:drawBar(currentArea.collectingTime * 1000, Translation[Config.Locale]['pre_collect'] .. currentArea.items[1].label .. Translation[Config.Locale]['collect']) -- 8000
if currentArea.animation ~= nil then
if currentArea.animation.type == 'scenario' then
TaskStartScenarioInPlace(PlayerPedId(), currentArea.animation.anim, 0, true)
Citizen.Wait(currentArea.collectingTime * 1000)
ClearPedTasksImmediately(PlayerPedId())
else
RequestAnimDict(currentArea.animation.dict)
while (not HasAnimDictLoaded(currentArea.animation.dict)) do
Citizen.Wait(10)
--print('waiting for dictionary')
end
TaskPlayAnim(player,currentArea.animation.dict,currentArea.animation.anim,1.0,-1.0, 5000, 0, 1, true, true, true)
Citizen.Wait(currentArea.collectingTime * 1000)
end
else
Citizen.Wait(currentArea.collectingTime * 1000)
end
Alles anzeigen