newLoadSceneStart
NEW_LOAD_SCENE_START0x212A8D0D2BABFAC2The 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.
newLoadSceneStart(
posX: number,
posY: number,
posZ: number,
offsetX: number,
offsetY: number,
offsetZ: number,
radius: number,
p7: number
): booleannewLoadSceneStart(
posX: number,
posY: number,
posZ: number,
offsetX: number,
offsetY: number,
offsetZ: number,
radius: number,
p7: integer
): booleanUsage
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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
posX | float | number | number |
posY | float | number | number |
posZ | float | number | number |
offsetX | float | number | number |
offsetY | float | number | number |
offsetZ | float | number | number |
radius | float | number | number |
p7 | int | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanNotes
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