Exports
You can use exports by doing: exports["evo_sound"]:PlayUrl(soundId, url, vol, loop, options)
Client
Playing sounds
Plays URL, will be heard everywhere
Plays URL at location
Playing TTS
Plays TTS, will be heard everywhere
Plays TTS at location
Getters
Returns current sound URL
Returns current sound position
Returns true if looped, false otherwise
Returns full sound object
Returns true if sound exists, false otherwise
Returns true if sound is playing, false otherwise
Returns true if sound is paused, false otherwise
Returns current sound distance
Returns current sound volume
Returns true if sound is dynamic, false otherwise
Returns sound timestamp
Returns sound max duration
Returns true if player is in streamer mode (muted)
Returns all sounds object
Returns true if player is close to sound
Returns true if sound is spatial
Returns true if sound is fitlerable
Returns true if sound is attached to any entity
Returns attached entity netId
Returns sound current interiorId
Returns sound current audio type (audio, stream)
Events
All events take soundId as first param and a function as second param
Triggered when sound starts. Wont trigger if SkipEvents is set to true Sound object is passed to the delegate function
Triggered when sound ends Sound object is passed to the delegate function
Triggered when sound is loading Sound object is passed to the delegate function
Triggered when sound is paused Sound object is passed to the delegate function
Triggered when sound is resumed Sound object is passed to the delegate function
Triggered when sound starts Sound object is passed to the delegate function
Triggered when there is an error playing the sound Sound object is passed to the delegate function
Triggered when sound timestamp is updated Sound object is passed to the delegate function
Triggered when sound gets in player range Sound object is passed to the delegate function
Server
Playing Sounds
Plays URL, will be heard everywhere
Plays URL at location
Playing TTS
Plays TTS, will be heard everywhere
Plays TTS at location
Setters
Change sound position
Change sound position
Destroy sound
Pause sound
Resume sound
Set sound volume
Set sound timestamp
Enable/disable sound destruction on finish
Last updated