Interface IVoiceChannel
Inherited Members
AltV.Net.Shared.Elements.Entities.ISharedBaseObject.SetMetaData(Dictionary<, >)
Namespace: AltV.Net.Elements.Entities
Assembly: AltV.Net.dll
Syntax
public interface IVoiceChannel : IBaseObject, ISharedBaseObject, INative
Properties
| Improve this Doc View SourceFilter
Declaration
uint Filter { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |
IsSpatial
Returns if the voice channel is spatial
Declaration
bool IsSpatial { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
MaxDistance
Returns the maximum distance
Declaration
float MaxDistance { get; }
Property Value
Type | Description |
---|---|
System.Single |
PlayerCount
Declaration
ulong PlayerCount { get; }
Property Value
Type | Description |
---|---|
System.UInt64 |
Players
Declaration
IReadOnlyCollection<IPlayer> Players { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<IPlayer> |
Priority
Declaration
int Priority { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
VoiceChannelNativePointer
Declaration
IntPtr VoiceChannelNativePointer { get; }
Property Value
Type | Description |
---|---|
System.IntPtr |
Methods
| Improve this Doc View SourceAddPlayer(IPlayer)
Adds the player to the voice channel
Declaration
void AddPlayer(IPlayer player)
Parameters
Type | Name | Description |
---|---|---|
IPlayer | player | The player |
Exceptions
Type | Condition |
---|---|
EntityRemovedException | This entity was removed |
HasPlayer(IPlayer)
Returns if the player is inside the voice channel
Declaration
bool HasPlayer(IPlayer player)
Parameters
Type | Name | Description |
---|---|---|
IPlayer | player | The player |
Returns
Type | Description |
---|---|
System.Boolean |
Exceptions
Type | Condition |
---|---|
EntityRemovedException | This entity was removed |
IsPlayerMuted(IPlayer)
Returns if the player is muted in the voice channel
Declaration
bool IsPlayerMuted(IPlayer player)
Parameters
Type | Name | Description |
---|---|---|
IPlayer | player | The player |
Returns
Type | Description |
---|---|
System.Boolean |
Exceptions
Type | Condition |
---|---|
EntityRemovedException | This entity was removed |
MutePlayer(IPlayer)
Mutes the player in the voice channel
Declaration
void MutePlayer(IPlayer player)
Parameters
Type | Name | Description |
---|---|---|
IPlayer | player | The player |
Exceptions
Type | Condition |
---|---|
EntityRemovedException | This entity was removed |
RemovePlayer(IPlayer)
Removes the player from the voice channel
Declaration
void RemovePlayer(IPlayer player)
Parameters
Type | Name | Description |
---|---|---|
IPlayer | player | The player |
Exceptions
Type | Condition |
---|---|
EntityRemovedException | This entity was removed |
UnmutePlayer(IPlayer)
Unmutes the player in the voice channel
Declaration
void UnmutePlayer(IPlayer player)
Parameters
Type | Name | Description |
---|---|---|
IPlayer | player | The player |
Exceptions
Type | Condition |
---|---|
EntityRemovedException | This entity was removed |