Client
Last updated
local speaker = exports["wais-speaker"]:GetSpeaker(netId)netId: number
The entity to which the sound is linked NetworkId
Return:
src: string
The YouTube video ID of the music being played. Example: YPuSGGPkMT8.mp3
volume: float
The volume of the song
min: 0.1
max: 1.0
loop?: boolean
Default: false
rate?: float
Default: 1.0
distance: float
The maximum distance the sound can be heard.
duration: float
The current duration of the song.
maxDuration: float
The maximum length of the song. (Second)
play: boolean
If the song is playing, true; otherwise, false
isVehicle: boolean
If the song is linked to the entity vehicle, then true, otherwise false
size: string
The size of the menu that will open.
Types: small , large
Last updated
exports["wais-speaker"]:openMenu(size)