Streaming::streamvolHasLoaded

From RAGE Multiplayer Wiki
Revision as of 09:59, 23 April 2024 by Shr0x (talk | contribs) (Created page with "__NOTOC__ {{ClientsideJsFunction}} {{JSContainer| Returns true if the stream volume has loaded, false if not === Required Arguments === *'''streamvol''' {{RageType|Handle}} === Return Value === *'''boolean''' {{RageType|Boolean}} ==Syntax== <pre> mp.game.streaming.streamvolHasLoaded(streamvol); </pre> ==Example== {{ClientsideCode| <syntaxhighlight lang="javascript"> const {x, y, z} = mp.players.local.position; const streamvol = mp.game.streaming.streamvolCreateSphere...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Client-Side
Function

 JavaScript



JavaScript Syntax

Returns true if the stream volume has loaded, false if not

Required Arguments

  • streamvol Handle

Return Value

  • boolean Boolean

Syntax

mp.game.streaming.streamvolHasLoaded(streamvol);

Example

Client-Side
const {x, y, z} = mp.players.local.position;
const streamvol = mp.game.streaming.streamvolCreateSphere(x, y, z, 1, 1);
if (mp.game.streaming.streamvolHasLoaded(streamvol)) {
    mp.gui.chat.push("stream vol has loaded!");
}


See also