- Documentation
- Client functions
- setSoundPaused
Function
setSoundPaused
Pauses or resumes a sound.
Syntax
bool setSoundPaused(sound theSound, bool paused)Arguments
theSoundsound- The sound.
pausedbooltruepauses.
Returns
true on success.
Example
bindKey("p", "down", function()
setSoundPaused(music, not isSoundPaused(music))
end)