Server-side exports
These functions should be used in the server script files.
API for playing audio
Play3DPos(source, uniqueId, position, distance, sound, volume, looped)
Play3DPos(source, uniqueId, position, distance, sound, volume, looped)
Arguments
Can't be empty - *
This export function plays a sound at a specified position.
Play3DEntity(source, entityNetId, distance, sound, volume, looped)
Play3DEntity(source, entityNetId, distance, sound, volume, looped)
Arguments
Can't be empty - *
This export function plays a sound on a specified entity.
Returned data in Play3D*
function variable
Play3D*
function variableEntity player data (Yellow) Player at a position data (White)
Audio manipulation API
soundVar.modify(source, field, newValue, secondValue)
soundVar.modify(source, field, newValue, secondValue)
Arguments
Can't be empty - *
Modifiable fields
This export function modifies the specified sound value.
soundVar.destroy(source)
soundVar.destroy(source)
Arguments
Can't be empty - *
This export function destroys the sound element.
soundVar.replay(source)
soundVar.replay(source)
Arguments
Can't be empty - *
This export function replays the sound from the beginning.
Other API functions
getSound(uniqueId)
getSound(uniqueId)
This export function gets the sound object.
getSoundData(uniqueId, field)
getSoundData(uniqueId, field)
This export function gets a specified data field of the sound object.
Last updated