[N]inja Posted December 7, 2020 Share 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 Link to comment
Other Languages Moderators Lord Henry Posted December 8, 2020 Other Languages Moderators Share Posted December 8, 2020 toggleControl ("next_weapon", false) toggleControl ("previous_weapon", false) 1 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