sound
Client-side
Server-side
Shared
Element category: Audio
The sound element represents a custom sound sent to the client via the use of the file parameter inside the meta file and created either by playSound or playSound3D.
A sound element can be manipulated in the GTA 3D world via setElementPosition and setElementDimension.
Sound elements can also be manipulated using the other Audio functions.
OOP Constructor
Sound(...) is the constructor method for the sound
class (playSound).
OOP Methods and Variables
- sound:getBPM(...)
- sound:getBufferLength(...) Variable: .bufferLength
- sound:getEffectParameters(...)
- sound:getFFTData(...)
- sound:getEffects(...)
- sound:getLength(...) Variable: .length
- sound:getMaxDistance(...) Variable: .maxDistance
- sound:getLevelData(...)
- sound:getMetaTags(...)
- sound:getMinDistance(...) Variable: .minDistance
- sound:getPan(...) Variable: .pan
- sound:getPlaybackPosition(...) Variable: .playbackPosition
- sound:getSpeed(...) Variable: .speed
- sound:getWaveData(...)
- sound:getVolume(...) Variable: .volume
- sound:isPanningEnabled(...) Variable: .panningEnabled
- sound:isLooped(...) Variable: .looped
- sound:getProperties(...)
- sound:setEffectParameter(...)
- sound:setEffectEnabled(...)
- sound:setLooped(...) Variable: .looped
- sound:setMaxDistance(...) Variable: .maxDistance
- sound:setMinDistance(...) Variable: .minDistance
- sound:setPan(...) Variable: .pan
- sound:setPaused(...) Variable: .paused
- sound:setPanningEnabled(...) Variable: .panningEnabled
- sound:setSpeed(...) Variable: .speed
- sound:setPlaybackPosition(...) Variable: .playbackPosition
- sound:setProperties(...)
- sound:getVolume(...) Variable: .volume
- sound:stop(...)
See Also
Audio Functions
- getRadioChannel
- getRadioChannelName
- getSFXStatus
- getSoundBPM
- getSoundBufferLength
- getSoundEffectParameters
- getSoundFFTData
- getSoundEffects
- getSoundLength
- getSoundMaxDistance
- getSoundLevelData
- getSoundMetaTags
- getSoundMinDistance
- getSoundPan
- getSoundPosition
- getSoundSpeed
- getSoundWaveData
- getSoundVolume
- isSoundPaused
- isSoundPanningEnabled
- playSFX
- isSoundLooped
- getSoundProperties
- playSound
- playSFX3D
- setRadioChannel
- playSound3D
- setSoundEffectParameter
- setSoundEffectEnabled
- setSoundLooped
- setSoundMaxDistance
- setSoundMinDistance
- setSoundPan
- setSoundPaused
- setSoundPanningEnabled
- setSoundSpeed
- setSoundPosition
- setSoundProperties
- setSoundVolume
- stopSound
Sound Functions
Sound Events
Audio Elements
- sound