M MY Multiplayer: Wiki
Side
Kind

getSoundBufferLength

Client

Kept for MTA compatibility, where it gives the buffer length of an internet stream.

bool getSoundBufferLength(sound sound)

Parameters

NameTypeDescription
soundsoundThe sound element, or a dui element for the browser's sound.

Returns

Always false.

Example

local length = getSoundBufferLength(music) or getSoundLength(music)
Coming from MTAMYMP does not play internet streams, so there is no buffer to measure.

See also