Streaming::streamvolCreateLine

From RAGE Multiplayer Wiki
Revision as of 10:04, 23 April 2024 by Shr0x (talk | contribs) (Created page with "__NOTOC__ {{ClientsideJsFunction}} {{JSContainer| Creates a new line streaming volume for the specified asset types. === Required Arguments === *'''x1''' {{RageType|Float}} *'''y1''' {{RageType|Float}} *'''z1''' {{RageType|Float}} *'''x2''' {{RageType|Float}} *'''y2''' {{RageType|Float}} *'''z2''' {{RageType|Float}} *'''flag''' {{RageType|Number}} === Return Value === *'''void''' {{RageType|Void}} ==Syntax== <pre> mp.game.streaming.streamvolCreateLine(x1, y1, z1, x2,...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Client-Side
Function

 JavaScript



JavaScript Syntax

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

  • void Void

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);


See also