Class Sound
Contains information for a Game Sound that is played at specific times.
Inherited Members
Namespace: LemonUI
Assembly: LemonUI.SHVDN3.dll
Syntax
public class Sound
Constructors
View SourceSound(string, string)
Creates a new Sound class with the specified Sound Set and File.
Declaration
public Sound(string set, string file)
Parameters
| Type | Name | Description |
|---|---|---|
| string | set | The Set where the sound is located. |
| string | file | The name of the sound file. |
Properties
View SourceFile
The name of the sound file.
Declaration
public string File { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Id
The ID of the sound, if is being played.
Declaration
public int Id { get; }
Property Value
| Type | Description |
|---|---|
| int |
Set
The Set where the sound is located.
Declaration
public string Set { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourcePlayFrontend()
Plays the sound for the local GTA.Player.
Declaration
public void PlayFrontend()
PlayFrontend(bool)
Plays the sound for the local GTA.Player.
Declaration
public void PlayFrontend(bool release)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | release | If the sound ID should be automatically released. |
Release()
Releases the Sound ID.
Declaration
public void Release()
Stop()
Stops the audio from playing.
Declaration
public void Stop()