Thank you all for the support. Sorry for any late help, lost internet yesterday.
@Mr.RDB I can see what you are trying to do and will look when I have time at how legacy fuel do it but that might have to be done a different way but I am willing to help and will see what I can do to help you
Hello everyoneā¦
Since i am new in this mods i want to thnx in advance cause i have take lots of ideas from all of you guys!!
But i have a problem . i have make a patren on the script below but the second time i try to hijack car the procces bar didnt work ā¦ the first one work correct!
TriggerEvent(āmythic_progbar:client:progressā, {
name = āhijackā,
duration = 10000,
label = āUnlock Vehicleā,
useWhileDead = false,
canCancel = true,
controlDisables = {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = false,
},
animation = {
animDict = āmissheistdockssetup1clipboard@idle_aā,
anim = āidle_aā,
}
}, function(status)
if not status then
TriggerEvent(āpNotify:SendNotificationā, {
layout = ābottomRightā,
text = āPoczuÅeÅ siÄ dużo lepiejā,
type = āinfoā,
theme = āgtaā,
sounds = {
sources = {ānotification.wavā}, ā For sounds to work, you place your sound in the html folder and then add it to the files array in the __resource.lua file.
volume = 0.2,
conditions = {ādocVisibleā} ā This means it will play the sound when the notification becomes visible.
}
})
end
end)
The export on is correct remember to rename the file to progressBars and just use exports instead of trigger before citizens just like where you did trigger.
Well if is not working for you, you did something wrong, for its working. Simple just install the reosurce and name it āprogressBarsā. After that put it in a client script. Simple as that.
And there could be another script that is using repairkit too. Test in your code if its getting called with print(ātestā)
that will print a the message test in your f8 console ingame if its getting called.
Great release, Iāve used this with some 75% of my mods since you posted it.
Added my two lines worth to make a closeUI export, to shut the progressBar down if something interrupts the event.