Streaming::streamvolCreateLine: Difference between revisions

From RAGE Multiplayer Wiki
(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,...")
 
(corrected return value)
 
Line 13: Line 13:
   
   
=== Return Value ===
=== Return Value ===
*'''void''' {{RageType|Void}}
*'''handle''' {{RageType|Handle}}


==Syntax==
==Syntax==

Latest revision as of 10:05, 23 April 2024

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

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


See also