Sucrilhex Posted May 13, 2020 Share Posted May 13, 2020 Tentei por pra quando o jogador logar, automaticamente tirar o som das armas, porem eu tentei com onPlayerLogin, e sem sucesso, ajude-me : ( function toggleWeaponSounds_f ( ) local enabled = isWorldSoundEnabled ( 5 ) -- We place this variable here for checking. setWorldSoundEnabled ( 5, not enabled ) -- And here the toggling happens. end addCommandHandler ( "teste", toggleWeaponSounds_f ) Link to comment
DNL291 Posted May 13, 2020 Share Posted May 13, 2020 Crie o onPlayerLogin (lado server) e com triggerClientEvent chame um evento do lado cliente. addEvent e addEventHandler para adicionar à função. Na função basta deixar setWorldSoundEnabled ( 5, 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