Streaming::forceStreamingUpdate

From RAGE Multiplayer Wiki
Revision as of 10:43, 23 April 2024 by Shr0x (talk | contribs) (Created page with "__NOTOC__ {{ClientsideJsFunction}} Forcefully update ('reload') streaming. {{JSContainer| === Return Value === *'''void''' {{RageType|void}} ==Syntax== <pre> mp.game.streaming.forceStreamingUpdate(); </pre> ==Example== {{ClientsideCode| <syntaxhighlight lang="javascript"> const [position, dimension, heading] = [mp.players.local.position, mp.players.local.dimension, mp.players.local.getHeading()]; const ped = mp.peds.new(mp.game.joaat("mp_m_freemode_01"), position, hea...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Client-Side
Function

 JavaScript



Forcefully update ('reload') streaming.

JavaScript Syntax


Return Value

  • void void

Syntax

mp.game.streaming.forceStreamingUpdate();

Example

Client-Side
const [position, dimension, heading] = [mp.players.local.position, mp.players.local.dimension, mp.players.local.getHeading()];
const ped = mp.peds.new(mp.game.joaat("mp_m_freemode_01"), position, heading, dimension);
ped.model = mp.game.joaat("mp_f_freemode_01");
mp.game.streaming.forceStreamingUpdate(); //force update streaming


See also