i need help with how to disable key “left ctrl”
need more info. what does your left ctrl do at the minute?
he bends a little not like z
but if you use lctrl + lmb kills with melee with one hit and i dont want that
… z?
Bend a little sounds like you mean sneak?
If so, run this code on client:
DisableControlAction(0, 36, true)
Read more: DisableControlAction - Cfx.re Docs (fivem.net)
List of controls: Controls (fivem.net)
I’m pretty sure LCTRL+Punch to one hit kill isn’t a vanilla thing though so you probably have a resource that is giving you that ability. You’d be better off just disabling or removing the code that does that
z key bro
i tried that and didn’t work maybe needs more parameters ?
Oh sorry you need to call it in a loop every frame
sorry i am not an expert how do i do that ???
Put it in a thread, here’s some pseudocode:
Citizen.CreateThread(function()
Citizen.Wait(0)
DisableControlAction(0, 36, true)
end)
Copy the above into any client script.
FYI, Citizen.Wait(0) makes it run every frame.
but “bro”, the z key only changes the hud to show more info, it has nothing to do with “bending” anything…?
i tried that but didn’t work , ctrl is still working…
Have you put this into a client file? That code is perfectly fine
yes i did