FiveM Docs / Native Reference
API Set:
  • all
  • server
  • client
Language:
  • raw
  • lua
  • c#
  • js
Namespace: STREAMINGAPI set: clientGame: gta5editImprove

NEW_LOAD_SCENE_START

0x212A8D0D2BABFAC2
0xDF9C38B6
// NewLoadSceneStart
BOOL NEW_LOAD_SCENE_START(float posX, float posY, float posZ, float offsetX, float offsetY, float offsetZ, float radius, int p7);
Parameters:
  • posX:

    World x coordinate.

  • posY:

    World y coordinate.

  • posZ:

    World z coordinate.

  • offsetX:

    Offset x coordinate.

  • offsetY:

    Offset y coordinate.

  • offsetZ:

    Offset z coordinate.

  • radius:

    Action radius, value is usually between 3f and 7000f in original 1868 scripts.

  • p7:

    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 (https://github.com/root-cause/v-decompiled-scripts).

`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

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)
Privacy
•
Cookie Policy
•
Cookie Settings
HAS_COLLISION_FOR_MODEL_LOADED(Hash model)
HAS_MODEL_LOADED(Hash model)
HAS_NAMED_PTFX_ASSET_LOADED(char* fxName)
HAS_PTFX_ASSET_LOADED()
INIT_CREATOR_BUDGET()
IS_ENTITY_FOCUS(Entity entity)
IS_IPL_ACTIVE(char* iplName)
_IS_MODEL_A_PED(Hash model)
IS_MODEL_A_VEHICLE(Hash model)
IS_MODEL_IN_CDIMAGE(Hash model)
IS_MODEL_VALID(Hash model)
IS_NETWORK_LOADING_SCENE()
IS_NEW_LOAD_SCENE_ACTIVE()
IS_NEW_LOAD_SCENE_LOADED()
IS_PLAYER_SWITCH_IN_PROGRESS()
IS_SRL_LOADED()
IS_STREAMVOL_ACTIVE()
IS_SWITCH_READY_FOR_DESCENT()
IS_SWITCH_SKIPPING_DESCENT()
LOAD_ALL_OBJECTS_NOW()
_LOAD_GLOBAL_WATER_TYPE(int waterType)
LOAD_SCENE(float x, float y, float z)
NETWORK_STOP_LOAD_SCENE()
NETWORK_UPDATE_LOAD_SCENE()
NEW_LOAD_SCENE_START(float posX, float posY, float posZ, float offsetX, float offsetY, float offsetZ, float radius, int p7)
NEW_LOAD_SCENE_START_SPHERE(float x, float y, float z, float radius, Any p4)
NEW_LOAD_SCENE_STOP()
OVERRIDE_LODSCALE_THIS_FRAME(float scaling)
PREFETCH_SRL(char* srl)
REMOVE_ANIM_DICT(char* animDict)
REMOVE_ANIM_SET(char* animSet)
REMOVE_CLIP_SET(char* clipSet)
REMOVE_IPL(char* iplName)
REMOVE_MODEL_FROM_CREATOR_BUDGET(Hash modelHash)
REMOVE_NAMED_PTFX_ASSET(char* fxName)