isSoundPaused
Shared
Tells whether a sound is paused.
bool isSoundPaused(sound sound)
Parameters
| Name | Type | Description |
|---|---|---|
| sound | sound | The sound element. On the client a dui element also works, for the browser's sound. |
Returns
true if it is paused, false if it is playing or the sound was not found.
Example
if isSoundPaused(music) then
setSoundPaused(music, false)
end