Streaming::streamvolCreateSphere
JavaScript
Creates a new spherical streaming volume for the specified asset types
Required Arguments
- x: Float
- y: Float
- z: Float
- flag: Number
- lodflag Number
Return Value
- handle Handle //returns -1 if invalid
Syntax
mp.game.streaming.streamvolCreateSphere(x, y, z, flag, lodFlag);
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!");
}