Exports
You can use exports by doing: exports["evo_sound_player"]:PlayUrl(soundId, url, vol, loop, options)
Client
Function
Desc
FindSoundByNetId(netId)Returns a sound by its netId (vehicle or boombox)
FindSoundByZoneId(zoneId)Returns a sound by its zoneId
SetPaused(id)Pauses sound
SetPlaying(id)Plays sound
SetTimestamp(id, timestamp)Sets sound timestamp
SetVolume(id, volume)Sets sound volume
SetLoop(id, state)Sets sound loop
SetShuffle(id, state)Sets sound shuffle (only works if is playing a playlist)
SetNewUrl(id, url, playlist)Updates sound current URL
DestroySound(id)Destroys a sound
RegisterHook(event, cb)Registers a hook
RemoveResourceHooks(resource)Removes all hooks registered from a resource
RemoveHook(id)Removes a hook by its id
Server
Function
Desc
FindSoundByNetId(netId)Returns a sound by its netId (vehicle or boombox)
FindSoundByZoneId(zoneId)Returns a sound by its zoneId
SetPaused(id)Pauses sound
SetPlaying(id)Plays sound
SetTimestamp(id, timestamp)Sets sound timestamp
SetVolume(id, volume)Sets sound volume
SetLoop(id, state)Sets sound loop
SetShuffle(id, state)Sets sound shuffle (only works if is playing a playlist)
SetNewUrl(id, url, playlist)Updates sound current URL
DestroySound(id)Destroys a sound