StreamingClient

loadScene

LOAD_SCENE0x4448EB75B4904BDB

The GTA V native LOAD_SCENE of the STREAMING namespace, as LS:MP client scripts call it: the global function loadScene, in JavaScript and in Lua.

SignatureJavaScript
loadScene(x: number, y: number, z: number): void
SignatureLua
loadScene(x: number, y: number, z: number)

Usage

JavaScript
loadScene(x, y, z);
Lua
loadScene(x, y, z)

Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.

JavaScript · with vectors
loadScene(pos);
Lua · with vectors
loadScene(pos)

Parameters

ParameterTypeJavaScriptLua
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Streaming STREAMING
In the game
void LOAD_SCENE(float x, float y, float z)
Hash
0x4448EB75B4904BDB

Open in the interactive natives reference