StreamingClient

newLoadSceneStart

NEW_LOAD_SCENE_START0x212A8D0D2BABFAC2

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

SignatureJavaScript
newLoadSceneStart(
  posX: number,
  posY: number,
  posZ: number,
  offsetX: number,
  offsetY: number,
  offsetZ: number,
  radius: number,
  p7: number
): boolean
SignatureLua
newLoadSceneStart(
  posX: number,
  posY: number,
  posZ: number,
  offsetX: number,
  offsetY: number,
  offsetZ: number,
  radius: number,
  p7: integer
): boolean

Usage

JavaScript
const result = newLoadSceneStart(posX, posY, posZ, offsetX, offsetY, offsetZ, radius, p7);
Lua
local result = newLoadSceneStart(posX, posY, posZ, offsetX, offsetY, offsetZ, radius, p7)

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
const result = newLoadSceneStart(pos, offset, radius, p7);
Lua · with vectors
local result = newLoadSceneStart(pos, offset, radius, p7)

Parameters

ParameterTypeJavaScriptLua
posXfloatnumbernumber
posYfloatnumbernumber
posZfloatnumbernumber
offsetXfloatnumbernumber
offsetYfloatnumbernumber
offsetZfloatnumbernumber
radiusfloatnumbernumber
p7intnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

radius value is usually between 3f and 7000f in original 1868 scripts.
p7 is 0, 1, 2, 3 or 4 used in decompiled scripts, 0 is by far the most common.
Returns True if success, used only 7 times in decompiled scripts of 1868

Reference

Namespace
Streaming STREAMING
In the game
BOOL NEW_LOAD_SCENE_START(float posX, float posY, float posZ, float offsetX, float offsetY, float offsetZ, float radius, int p7)
Hash
0x212A8D0D2BABFAC2

Open in the interactive natives reference