Show / Hide Table of Contents

Class Sound

Contains information for a Game Sound that is played at specific times.

Inheritance
object
Sound
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: LemonUI
Assembly: LemonUI.SHVDN3.dll
Syntax
public class Sound

Constructors

View Source

Sound(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 Source

File

The name of the sound file.

Declaration
public string File { get; set; }
Property Value
Type Description
string
View Source

Id

The ID of the sound, if is being played.

Declaration
public int Id { get; }
Property Value
Type Description
int
View Source

Set

The Set where the sound is located.

Declaration
public string Set { get; set; }
Property Value
Type Description
string

Methods

View Source

PlayFrontend()

Plays the sound for the local GTA.Player.

Declaration
public void PlayFrontend()
View Source

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.

View Source

Release()

Releases the Sound ID.

Declaration
public void Release()
View Source

Stop()

Stops the audio from playing.

Declaration
public void Stop()
  • View Source
In this article
Back to top Generated by DocFX