IsValidSound

From Onset Developer Wiki
IsValidSound

Type: Function
Context: Client
Introduced: v1.0

Description

Checks whether the sound is valid or not.

Syntax

IsValidSound(sound)

Parameters

  • sound
    The sound identifier

Return Value

  • Returns true if the sound is valid, otherwise false.

Example

if IsValidSound(soundId) then
    DeleteSound(soundId)
end

See also