SA-MP Forums Archive
Redefining keys - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Redefining keys (/showthread.php?tid=639437)



Redefining keys - Jamould - 17.08.2017

Hi there,

I noticed that Key_ctrl_back is defined, but Key_ctrl_forward is not.
Is it possible to make a new define for Key_ctrl_forward, that's used in
vehicles only?


Re: Redefining keys - Vince - 17.08.2017

KEY_CTRL_FORWARD is generally bound to the "G" key which is used to enter vehicles as passenger. You can add the definition for the key and you can use it in gametext and all but I don't think it can be detected with OnPlayerKeyStateChange.