Streaming::streamvolCreateLine
JavaScript
Creates a new line streaming volume for the specified asset types.
Required Arguments
- x1 Float
- y1 Float
- z1 Float
- x2 Float
- y2 Float
- z2 Float
- flag Number
Return Value
- handle Handle
Syntax
mp.game.streaming.streamvolCreateLine(x1, y1, z1, x2, y2, z2, flag);
Example
Client-Side
const {x, y, z} = mp.players.local.position;
const forwardVec = mp.players.local.getForwardVector();
mp.game.streaming.streamvolCreateLine(x, y, z, forwardVec.x, forwardVec.y, forwardVec.z, 1);