EvoLabs
  • 👋Welcome
  • Scripts
    • 🔊evo_sound
      • Installation
      • Config
      • Exports
      • Sync System
    • 🔉evo_sound_player
      • Installation
      • Config
      • Exports
      • Hooks (client-side only)
Powered by GitBook
On this page
  • Client
  • Server
  1. Scripts
  2. evo_sound_player

Exports

You can use exports by doing: exports["evo_sound_player"]:PlayUrl(soundId, url, vol, loop, options)

Client

Function
Desc

Returns a sound by its netId (vehicle or boombox)

Returns a sound by its zoneId

Pauses sound

Plays sound

Sets sound timestamp

Sets sound volume

Sets sound loop

Sets sound shuffle (only works if is playing a playlist)

Updates sound current URL

Destroys a sound

Registers a hook

Removes all hooks registered from a resource

Removes a hook by its id

Server

Function
Desc

Returns a sound by its netId (vehicle or boombox)

Returns a sound by its zoneId

Pauses sound

Plays sound

Sets sound timestamp

Sets sound volume

Sets sound loop

Sets sound shuffle (only works if is playing a playlist)

Updates sound current URL

Destroys a sound

PreviousConfigNextHooks (client-side only)

Last updated 7 months ago

🔉
FindSoundByNetId(netId)
FindSoundByZoneId(zoneId)
SetPaused(id)
SetPlaying(id)
SetTimestamp(id, timestamp)
SetVolume(id, volume)
SetLoop(id, state)
SetShuffle(id, state)
SetNewUrl(id, url, playlist)
DestroySound(id)
RegisterHook(event, cb)
RemoveResourceHooks(resource)
RemoveHook(id)
FindSoundByNetId(netId)
FindSoundByZoneId(zoneId)
SetPaused(id)
SetPlaying(id)
SetTimestamp(id, timestamp)
SetVolume(id, volume)
SetLoop(id, state)
SetShuffle(id, state)
SetNewUrl(id, url, playlist)
DestroySound(id)