Skip to main content

Streaming::streamvolIsValid

Client-side function

JavaScript​

Returns true if the stream volume handle is valid and active, false if its not.

Required Arguments​

  • streamvol Handle

Return Value​

  • boolean Boolean

Syntax​

mp.game.streaming.streamvolIsValid(streamvol);

Example​

Client-Side

const {x, y, z} = mp.players.local.position;
const streamvol = mp.game.streaming.streamvolCreateSphere(x, y, z, 1, 1);
if (mp.game.streaming.streamvolIsValid(streamvol)) {
mp.gui.chat.push("stream vol is valid!");
}