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)
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
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.
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.