slapz0r

onClientPlayerVoiceStart

Recommended Posts

onClientPlayerVoiceStart

how to ban this command if the player is not logged in (guest) ?

Share this post


Link to post

@slapz0r

Do you want to mute them or mute the audio from other players as well?

I haven't done this before, so I do not know the best practice, especially the capability of voice with your gamemode.

 

But let me increase your options:

 

See this event: onPlayerVoiceStart

+ example on that page.

 

Here you have a list of export functions for the voice resource.

See:

https://wiki.multitheftauto.com/wiki/Resource:Voice#setPlayerVoiceMuted_2

And

https://wiki.multitheftauto.com/wiki/Resource:Voice#setPlayerChannel

 

 

  • Like 1

Share this post


Link to post
12 minutes ago, IIYAMA said:

@slapz0r

Do you want to mute them or mute the audio from other players as well?

I haven't done this before, so I do not know the best practice, especially the capability of voice with your gamemode.

 

But let me increase your options:

 

See this event: onPlayerVoiceStart

+ example on that page.

 

Here you have a list of export functions for the voice resource.

See:

https://wiki.multitheftauto.com/wiki/Resource:Voice#setPlayerVoiceMuted_2

And

https://wiki.multitheftauto.com/wiki/Resource:Voice#setPlayerChannel

 

 

solved my problem with the first option, thanks

  • Like 1

Share this post


Link to post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.