| Property | Value |
|---|---|
| Native Name | NEW_LOAD_SCENE_START |
| Hash | 0x212A8D0D2BABFAC2 |
| Return Type | BOOL |
| Parameters | posX (float), posY (float), posZ (float), offsetX (float), offsetY (float), offsetZ (float), radius (float), p7 (int) |
Description: ```
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
### Parameters
- **`posX`** (`float`) — World `x` coordinate.
- **`posY`** (`float`) — World `y` coordinate.
- **`posZ`** (`float`) — World `z` coordinate.
- **`offsetX`** (`float`) — Offset `x` coordinate.
- **`offsetY`** (`float`) — Offset `y` coordinate.
- **`offsetZ`** (`float`) — Offset `z` coordinate.
- **`radius`** (`float`) — Action radius, value is usually between `3f` and `7000f` in original 1868 scripts.
- **`p7`** (`int`) — 0, 1, 2, 3 or 4 used in decompiled scripts, 0 is by far the most common.
### Examples
```lua
function func_8(vParam0)
return (-(Sin(vParam0.z)) * Cos(vParam0.x)), (Cos(vParam0.z) * Cos(vParam0.x)), Sin(vParam0.x)
end
Citizen.CreateThread(function()
local vLocal_43 = vector3(1691.228, 3251.785, 44.2574)
local vLocal_44 = vector3(2.5652, 0, -4.1481)
if NewLoadSceneStart(vLocal_43.x, vLocal_43.y, vLocal_43.z, func_8(vLocal_44), 4500.0, 0)) then
SetPlayerControl(PlayerId(), false, 0)
local gameTimer = GetGameTimer()
while not IsNewLoadSceneLoaded() and (GetGameTimer() - gameTimer < 20) do
Citizen.Wait(0)
end
NewLoadSceneStop()
SetFocusPosAndVel(vLocal_43.x, vLocal_43.y, vLocal_43.z, func_8(vLocal_44))
end
end)