LOAD_SCENE_START
Starts loading the scene at the given position and direction within radius. Returns true if the load was started.
Poll IS_LOAD_SCENE_LOADED, then call LOAD_SCENE_STOP.
Signature
BOOL LOAD_SCENE_START(float posX, float posY, float posZ, float offsetX, float offsetY, float offsetZ, float radius, int p7); // 0x387AD749E3B69B70 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | posX | float |
| 2 | posY | float |
| 3 | posZ | float |
| 4 | offsetX | float |
| 5 | offsetY | float |
| 6 | offsetZ | float |
| 7 | radius | float |
| 8 | p7 | int |
Facts
| Name | LOAD_SCENE_START |
|---|---|
| Hash | 0x387AD749E3B69B70 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x387AD749E3B69B70, -- LOAD_SCENE_START
0.0, -- float posX
0.0, -- float posY
0.0, -- float posZ
0.0, -- float offsetX
0.0, -- float offsetY
0.0, -- float offsetZ
0.0, -- float radius
0 -- int p7
)
if result then
-- ...
end// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0x387AD749E3B69B70", // LOAD_SCENE_START
0.0, // float posX
0.0, // float posY
0.0, // float posZ
0.0, // float offsetX
0.0, // float offsetY
0.0, // float offsetZ
0.0, // float radius
0, // int p7
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x387AD749E3B69B70, // LOAD_SCENE_START
0.0f, // float posX
0.0f, // float posY
0.0f, // float posZ
0.0f, // float offsetX
0.0f, // float offsetY
0.0f, // float offsetZ
0.0f, // float radius
0 // int p7
);Related STREAMING natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.