help me please

Runbu73

Участник
Автор темы
75
2
help me put the function, I need an imgui.Button with the code to give the player an animation, example: I press the button and my character starts to urinate

Ícone Verificada pela comunidade
 

N08I40K

Известный
224
106

lua:
if imgui.Button('Play Animation') then
    taskPlayAnim(PLAYER_PED, "WF_FWD", "WAYFARER", 9, false, false, false, false, -1)
end

Ped ped character handle
string animation animation name
string IFP file animation
float framedelta speed
bool loop animation repetition (true - yes, false - no)
bool lockX, bool lockY blocking positions along X,Y (true - yes, false - no)
bool lockF return to the original position (true - return, false - do not return)
int time playback time