[SOLVED] [HELP] Put the Hands Up

Hello, I was wondering if there is multiple solutions to put the hands up.

Now, i’m using this function:

Citizen.CreateThread(function()
	while true do
		Citizen.Wait(0)
		if IsControlPressed(1, 323) then --Start holding X
			TaskHandsUp(GetPlayerPed(-1), 1000, GetPlayerPed(-1), -1, true) -- Perform animation.
		end
	end
end)

TaskHandsUp(); <- this one here.

The problem is that this function is playing facing north. (0 degree)

So, I think I could use TaskPlayAnimAdvanced(p0, animDict, animName, posX, posY, posZ, rotX, rotY, rotZ, speed, speedMultiplier, duration, flag, animTime, p14, p15)), but I don’t know how to use it and what are the args to use.

Can someone help me ?

Thanks

Hello again,

Problem solved and by keeping TaskHandsUp()

Just replacing the p2=GetPlayerPed(-1) by p2=-1

Citizen.CreateThread(function()
	while true do
		Citizen.Wait(0)
		if IsControlPressed(1, 323) then --Start holding X
			TaskHandsUp(GetPlayerPed(-1), 1000, -1, -1, true) -- Perform animation.
		end
	end
end)

any chance your version of this could be uploaded as the only one people can find is the chat command version with /hu
would be much appreciated if you could.

Done, available here: [Release] Hands Up (with hotkey) :wink:

1 Like

Thank you, i appreciate it as i’m sure other will also.

1 Like