tosfera Posted August 13, 2014 Posted August 13, 2014 Hey, So I'm having a little problem, I'm disabling the 'fire' control in some circumstances but whenever you aim ( right click ) and press tab, it'll still shoot. Even though the shoot control is disabled. Is this a bug, did anyone else also encounter this problem? Love to hear from you guys, - Tosfera
Chris!i! Posted August 13, 2014 Posted August 13, 2014 Could you post your script to we can help you thank you.
tosfera Posted August 14, 2014 Author Posted August 14, 2014 Could you post your script to we can help you thank you. Kidding, right? Why should I post my script is it's always happening? Whenever you disable the fire using; toggleControl ( thePlayer, 'fire', false ); you'll still be able to shoot while holding your RMB and pressing TAB. I think you can disable "action" Let me try and find that.
C4N Posted January 13, 2020 Posted January 13, 2020 Check this: https://wiki.multitheftauto.com/wiki/ToggleControl and Control Names: https://wiki.multitheftauto.com/wiki/Control_names
iiv03 Posted January 13, 2020 Posted January 13, 2020 41 minutes ago, C4N said: Check this: https://wiki.multitheftauto.com/wiki/ToggleControl and Control Names: https://wiki.multitheftauto.com/wiki/Control_names this topic is too old I think it closes better
C4N Posted January 13, 2020 Posted January 13, 2020 (edited) 18 minutes ago, xFabel said: this topic is too old I think it closes better I hope it's closed but still dont work this toggleControl 'fire' how can I block mouse1 button? Edited January 13, 2020 by C4N
KiritoAguiar Posted September 10, 2021 Posted September 10, 2021 Cara eu fiz uma simples função e não consigo desativar o jogador de atirar, o jogador fica bloqueado com todos os outros comandos menos o de atirar, alguem sabe se isso é um erro do mta? function tiro(thePlayer) toggleControl(thePlayer, "fire", false) toggleControl(thePlayer, "action", false) toggleControl(thePlayer, "jump", false) outputChatBox("a", thePlayer) end addCommandHandler("teste", tiro) function tiro2(thePlayer) toggleControl(thePlayer, "fire", true) toggleControl(thePlayer, "action", true) toggleControl(thePlayer, "jump", true) outputChatBox("b", thePlayer) end addCommandHandler("testee", tiro2)
The_GTA Posted September 12, 2021 Posted September 12, 2021 On 10/09/2021 at 15:26, KiritoAguiar said: Cara eu fiz uma simples função e não consigo desativar o jogador de atirar, o jogador fica bloqueado com todos os outros comandos menos o de atirar, alguem sabe se isso é um erro do mta? Verify that your script is assigned to run server-side by looking into your meta.xml file. <script src="script.lua" type="server" /> This is important because you are using the serverside versions of functions.
KiritoAguiar Posted September 12, 2021 Posted September 12, 2021 Dude, thats not the problem.. im realy lost
WiBox Posted September 20, 2021 Posted September 20, 2021 Is there any other scripts running? Maybe there're other scripts enabling these options?
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