itHyperoX Posted March 27, 2018 Share Posted March 27, 2018 (edited) Hi, is there anyway to cancel the arrow_l , arrow_r when player typed on guiCreateEdit ? Edited March 27, 2018 by TheMOG Link to comment
Scripting Moderators thisdp Posted March 27, 2018 Scripting Moderators Share Posted March 27, 2018 onClientKey Link to comment
itHyperoX Posted March 28, 2018 Author Share Posted March 28, 2018 I already tried. function playerPressedKey(button, press) if (press) then -- Only output when they press it down if (button == "arrow_l") or (button == "arrow_r") then cancelEvent() print("blocked") end end end addEventHandler("onClientKey", root, playerPressedKey) Link to comment
Skully Posted March 30, 2018 Share Posted March 30, 2018 Check this topic, it's related to what you're trying to achieve. Link to comment
itHyperoX Posted April 1, 2018 Author Share Posted April 1, 2018 On 31/03/2018 at 00:35, Skully said: Check this topic, it's related to what you're trying to achieve. I'm already tried this. Not working. Link to comment
Tails Posted April 1, 2018 Share Posted April 1, 2018 (edited) Use this https://wiki.multitheftauto.com/wiki/GuiEditSetCaretIndex with onClientKey Edited April 1, 2018 by Tails Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now