local speaker = exports["wais-speaker"]:GetSpeaker(netId)
netId: number
number
The entity to which the sound is linked NetworkId
Return:
src: string
string
The YouTube video ID of the music being played. Example: YPuSGGPkMT8.mp3
YPuSGGPkMT8.mp3
volume: float
float
The volume of the song
min: 0.1
0.1
max: 1.0
1.0
loop?: boolean
boolean
Default: false
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
true
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
small
large
Last updated 11 days ago
exports["wais-speaker"]:openMenu(size)