RO/stopSound
From Multi Theft Auto: Wiki
Oprește redarea unui element de tip sound specificat. Elementul de tip sunet este, de asemenea, distrus.
Sintaxă
bool stopSound (element theSound)
OOP Syntax Help! I don't understand this!
- Method: sound:stop(...)
Argumente Necesare
Redare
Redă true dacă sunetul a fost oprit cu succes. În caz contrar, false.
Exemplu
function startMySound() -- Crearea unui sunet sound = playSound("sound.mp3", true) end addEventHandler("onClientResourceStart", resourceRoot, startMySound) function stopMySound() -- Oprirea sunetului creat stopSound(sound) end addCommandHandler("stopsound", stopMySound) -- Oprirea sunetului creat anterior se va putea realiza folosind comanda /stopsound
Vizualizați de asemenea
- RO/getRadioChannel
- RO/getRadioChannelName
- RO/getSFXStatus
- RO/getSoundBPM
- RO/getSoundEffects
- RO/getSoundFFTData
- RO/getSoundLength
- RO/getSoundLevelData
- RO/getSoundMaxDistance
- RO/getSoundMetaTags
- RO/getSoundMinDistance
- RO/getSoundPan
- RO/getSoundPosition
- RO/getSoundProperties
- RO/getSoundSpeed
- RO/getSoundVolume
- RO/getSoundWaveData
- RO/isSoundPanningEnabled
- RO/isSoundPaused
- RO/playSFX
- RO/playSFX3D
- RO/playSound
- RO/playSound3D
- RO/playSoundFrontEnd
- RO/setRadioChannel
- RO/setSoundEffectEnabled
- RO/setSoundMaxDistance
- RO/setSoundMinDistance
- RO/setSoundPan
- RO/setSoundPanningEnabled
- RO/setSoundPaused
- RO/setSoundPosition
- RO/setSoundProperties
- RO/setSoundSpeed
- RO/setSoundVolume
- RO/stopSound