Object::streamingRange: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "{{ClientsideJsFunction}} {{JSContainer| This property will set the object's streaming distance (range). ===Required Params=== *'''distance:''' {{RageType|number}} ===Return value=== *''' {{RageType|number}} ''' ==Syntax== <syntaxhighlight lang="javascript"> object.streamingRange = distance; </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const object = mp.objects.new(mp.game.joaat("02gate3_l"), mp.players.local.position); object.streamingRange = 3...")
 
No edit summary
 
Line 17: Line 17:
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
const object = mp.objects.new(mp.game.joaat("02gate3_l"), mp.players.local.position);
const object = mp.objects.new(mp.game.joaat("02gate3_l"), mp.players.local.position);
object.notifyStreaming = true;
object.streamingRange = 300;
object.streamingRange = 300;
</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 09:48, 19 August 2024

Client-Side
Function

 JavaScript



JavaScript Syntax

This property will set the object's streaming distance (range).

Required Params

  • distance: number

Return value

  • number

Syntax

object.streamingRange = distance;

Example

const object = mp.objects.new(mp.game.joaat("02gate3_l"), mp.players.local.position);
object.notifyStreaming = true;
object.streamingRange = 300;


See also