SoundPlayer
🎵 Accessing the API
local SoundSystem = exports['ak47_lib']:CreateSound(data)
-- or
local SoundSystem = Lib47.CreateSound(data)🛠 Constructor
CreateSound(data)
CreateSound(data)🧬 Sound Object Methods
:play()
:play():pause()
:pause():destroy()
:destroy():setVolume(volume)
:setVolume(volume):setRate(rate)
:setRate(rate):setMaxDistance(distance)
:setMaxDistance(distance):updateCoords(coords)
:updateCoords(coords):getInfo()
:getInfo()📚 Examples
Example 1: Looping Background Ambience
Example 2: Looping 3D Machine Sound
Example 3: Global Siren (Syncs to all players)
Example 4: The "All Variables" Configuration
Example 5: Moving Entity Sound
Last updated