Hello, I would like to make a custom vehicle acceleration script. My script looks like something like this.
addEventHandler("onClientRender", root, function()
setAnalogControlState("accelerate", a)
end)
addEventHandler("onClientResourceStart", resourceRoot, function()
toggleControl("accelerate", false)
end)
I would like to disable the WASD keys. I disabled the acceleration by the toggleControl() function. The problem is that, it disabled the setAnalogControlState() function too. Is there any way to disable the vehicle acceleration key?