LOAD_SCENE_START
Hash
0x387AD749E3B69B70Runtime name
LoadSceneStartNamespaceSTREAMING
SideClient
NameOfficial
Docs
Since build1207
Signature
BOOL LOAD_SCENE_START(float posX, float posY, float posZ, float offsetX, float offsetY, float offsetZ, float radius, int controlFlags);Parameters
| Name | Type | Description |
|---|---|---|
posX | float | — |
posY | float | — |
posZ | float | — |
offsetX | float | — |
offsetY | float | — |
offsetZ | float | — |
radius | float | — |
controlFlags | int | — |
Returns BOOL
Usage
local retval = LoadSceneStart(posX, posY, posZ, offsetX, offsetY, offsetZ, radius, controlFlags)
-- always works, by hash
local retval = Citizen.InvokeNative(0x387AD749E3B69B70, posX, posY, posZ, offsetX, offsetY, offsetZ, radius, controlFlags, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = LoadSceneStart(posX, posY, posZ, offsetX, offsetY, offsetZ, radius, controlFlags);
// by hash
const retval = Citizen.invokeNative('0x387AD749E3B69B70', posX + 0.0000001, posY + 0.0000001, posZ + 0.0000001, offsetX + 0.0000001, offsetY + 0.0000001, offsetZ + 0.0000001, radius + 0.0000001, controlFlags, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x387AD749E3B69B70, posX, posY, posZ, offsetX, offsetY, offsetZ, radius, controlFlags);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.