I was wondering if there was any script that i can walk around and smoke cigarettes, joint, drink beer, coffee, i think i saw it somewhere on a server, but i cant find it on the forums
Hello mate, to “walk” using an animation you have to change the flag of your animation ! Some flag block or not upperbody, freeze position etc !
You will have what informations you want in the TaskPlayAnim documentation !
TaskPlayAnim doc : Native Reference - Cfx.re Docs
Check into the TaskPlayAnim description !
i know nothing about scripting, i wan to lol, but school overrides my life and other shit, i was wondering if it was already on the forums
Right here:
I havent added smoking cigs or weed yet. Will be next update
yep already have this amazing mod in my server but was wondering if there was anyone who has made the smoking and beer one yet, but cant wait to see it in the next update
I just recently added a coffee and cig one for my server. I am also working on a suicide one, but I can’t figure out how to freeze and animation at a certain point.
Did you tryed to change the duration ? I didnt made it but im pretty sure its possible to change the duration of an animation. You can probably also force the ped to stop the animation after changing the duration @En3rgized247
I tried to change the duration and loop it, but he keeps bringing the gun to his head, rather than holding it there. Unless there is a way to start the animation at a certain point.
I was thinking maybe TaskPlayAnimAdvanced
might have more options.
Figured one part out. (Thanks to xander)
I am still confused on stopping it at a certain point though…
Any luck? I am trying to get a smoking one as well. I am super new to scripting so… good luck to me! haha.