enginePreloadWorldAreaInDirection
Client-side
Ask GTA to preload the world around a destination and viewing direction before revealing a teleport or cutscene.
Syntax
bool enginePreloadWorldAreaInDirection(Vector3 position, float headingDegrees)Arguments
positionVector3Finite scene position.
headingDegreesfloatFinite direction in degrees.
Returns
true after GTA completes the directional load; false for non-finite input.
Ownership and lifecycle
These calls act immediately on streamed native state and do not create a persistent lease. The resource remains responsible for scene timing and authoritative mission progression.
Important behavior
- This call can block while GTA loads the requested scene; stage it under an appropriate fade.
Where this comes from
SOURCECLuaEngineDefs.cppClient/mods/deathmatch/logic/luadefs/CLuaEngineDefs.cpp INTRODUCED / EXTENDEDe4bddaac4Read the commit and why the change was made TEST RESOURCE tagging-up-turf test-resources/tagging-up-turf
RELATED SA:O APIS
Read the system guide → Continue exploring
← Back to the SA:O Lua API · How Native scene primitives works →