[Release] Hands Up (with hotkey)

Hello,
As someone asked me for sharing the script to put the hands up with hotkey here: [SOLVED] [HELP] Put the Hands Up

I’ve decided to share the code that @Kyominii developed for https://horizongta.com

I’ve just edited the function to don’t face the north (0 degree).

You can download the edited version here:
handsup.zip (683 Bytes)

Just press “X” (by default) to raise your hands up.

9 Likes

Gonna See the South, the East, The West !! Oh Wait… Police are here…

Thanks :slight_smile:

2 Likes

Can move with hands up? :o

thats kind of the point

Hi, good joob!!!
How do I change the default key?
Thanks.

1 Like

good I would like to add more direct actions with keys.

Where can I find more animations like this to raise your hands?

TaskHandsUp(GetPlayerPed(-1), 1000, -1, -1, true)

I would like 2 point with your finger and get on your knees with your hands on your head to assign 2 new B and C keys

I have even code ready for XD animations

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)

Citizen.CreateThread(function()
 while true do
    Citizen.Wait(15)
    if IsControlJustPressed(0, 305) then --Start holding B
       -- Perform animation.
    end
 end
end)

Citizen.CreateThread(function()
 while true do
    Citizen.Wait(15)
    if IsControlJustPressed(0, 26) then --Start holding C
       -- Perform animation.
    end
 end
end)

have code and no have animaciones help me pls

but the solution to hold hands and walk?

how can i change it to its toggle instead of hold. so i press x once and they stay up and press it again and they go down instead of hands going up and down upon releasing x

i cant seem to find to change the key

You can change the Key here - if IsControlPressed(1, 323) then --Start holding X, This is located in client.lua Change ‘323’ to the desired key you want.Please note you will need the keys number id.

2 Likes

nope you cant

y do i have to hold it down??!?!?

I have a problem, theres two keys for hands up, cant find where is the other script. theres a script with the key “~” andtheres the one i put with the “X”. anyone know where it could be or whats the name of that script.