[N]inja Posted December 7, 2020 Posted December 7, 2020 function abrir( key, keyState ) --if not isPedInVehicle ( localPlayer ) and isPedInVehicle ( localPlayer ) then if ( keyState == 'down' ) then addEventHandler ("onClientRender", root, dx) showCursor (true) som = playSound("sfx/effect.mp3") painel2 = true setElementData ( localPlayer, "shader", true ) elseif ( keyState == 'up' ) then showCursor (false) setElementData ( localPlayer, "shader", false ) stopSound(som) painel2 = false removeEventHandler ("onClientRender", root, dx) -- end end end bindKey( 'm', 'down', abrir ) bindKey( 'm', 'up', abrir ) unbindKey ('mouse_wheel_up') quero remover a troca de arma pelo q, e, mouse_wheel_up e mouse_wheel_down
Moderators Lord Henry Posted December 8, 2020 Moderators Posted December 8, 2020 toggleControl ("next_weapon", false) toggleControl ("previous_weapon", false) 1 Eu te ajudei ou achou meu comentário útil? Não esqueça de deixar um Thanks! Minhas contribuições para a comunidade: LordHenry - MTA Wiki Profile Inscreva-se no meu canal do YouTube: Lord Henry - Entertainment Discord Oficial do MTA: https://mtasa.com/discord Blacklist e Whitelist de Scripters: Planilha Por favor, não me envie mensagens privadas solicitando suporte. Crie um tópico no fórum em vez disso.
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