[HELP] DisableControlAction?

Hi,
I made a robbery ATM script with an animation… In my server i use H to stop animations, so i want to disable H key while robbery is true… but it won’t work and i don’t know why, i can still use H key…

Citizen.CreateThread(function()			
	while true do
		Citizen.Wait(0)
		if rapina then
			DisableControlAction(0, 74, true)
		end
	end
end)
2 Likes

you choosed the wrong key, INPUT_VEH_HEADLIGHT. there is 3/4 keycode for the “H” key