Natives MISC 0x6874E2190B0C1972 BOOL FIND_SPAWN_POINT_IN_DIRECTION (float posX, float posY, float posZ, float dirX, float dirY, float dirZ, float distance, Vector3* spawnPoint); Documentation Community 0
Property
Value
Native Name
FIND_SPAWN_POINT_IN_DIRECTION
Hash
0x6874E2190B0C1972
Return Type
BOOL
Parameters
posX (float), posY (float), posZ (float), dirX (float), dirY (float), dirZ (float), distance (float), spawnPoint (Vector3*)
Description: ```
Finds a position ahead of the player by predicting the players next actions.
The positions match path finding node positions.
When roads diverge, the position may rapidly change between two or more positions. This is due to the engine not being certain of which path the player will take.
Back to MISC Before you callA `*` parameter here is an in/out pointer slot, not an ordinary value argument, and its marshalling depends on type and direction: getter out-slots come back as extra Lua return values (pass a Citizen.PointerValueInt() / PointerValueFloat() placeholder and read them after the normal return), while Vector3* params and in/out handles you supply a value into (e.g. a sequence-task id) are passed differently — confirm the exact convention with get_invoke_guide before passing it like a normal arg.
Let your AI read the fine print. Native signatures, warnings, and community context. Directly in your editor.
Connect via MCP