[need help] Keys Value List

hi guys i want to change this key. but i need a list with the right keys value.

Can anybody give me an list with the keys ?

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)
2 Likes

Sorry its not all of them, but it is most

Mapped keyboard keys are:

7 - l
8 - s
9 - d
10 - Page up
11 - Page down
12 - mouse move down
13 - mouse move right
18 - space or enter
19 - L Alt
20 - z
21 - L Shift
23 - f
32 - w
34 - a
36 - L Ctrl
39 - [
40 - ]
44 - q
45 - r
51 - e
56 - F9
57 - F10
58 - g
60 - num pad 5
61 - num pad 8
197 - ]
199 - p
202 - Backspace
205 - q
206 - e
209 - L Shift
211 - tab
213 - home
214 - del
215 - enter
216 - spacebar
217 - Caps lock
224 - L Ctrl
232 - w
233 - s
234 - a
235 - d
236 - v
239 - Cam +
240 - Cam -
241 and 242 for the mouse wheel up and down.
243 - ~
244 - m
245 - t
246 - y
249 - n
329 - LMouseBtn
330 - 331 - RMouseBtn

2 Likes

You are using IsControlPressed, so for the key you want you need the control number id.

https://hastebin.com/seqedecayi.bash

2 Likes

[quote=“TylerMcGruber, post:3, topic:7259”]
so for the key you want you need the control number id
[/quote] what is this
it not work

Its GTA’s control numbers.

i try find numpad at your link but when i got it it not work :3

[/quote]