SET_FOCUS_POS_AND_VEL
Moves the streaming focus to the given position with an offset or velocity hint.
Call CLEAR_FOCUS to restore normal streaming.
Signature
void SET_FOCUS_POS_AND_VEL(float x, float y, float z, float offsetX, float offsetY, float offsetZ); // 0x25F6EF88664540E2 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | x | float |
| 2 | y | float |
| 3 | z | float |
| 4 | offsetX | float |
| 5 | offsetY | float |
| 6 | offsetZ | float |
Facts
| Name | SET_FOCUS_POS_AND_VEL |
|---|---|
| Hash | 0x25F6EF88664540E2 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0x25F6EF88664540E2, -- SET_FOCUS_POS_AND_VEL
0.0, -- float x
0.0, -- float y
0.0, -- float z
0.0, -- float offsetX
0.0, -- float offsetY
0.0 -- float offsetZ
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x25F6EF88664540E2", // SET_FOCUS_POS_AND_VEL
0.0, // float x
0.0, // float y
0.0, // float z
0.0, // float offsetX
0.0, // float offsetY
0.0 // float offsetZ
);Function.Call((Hash)0x25F6EF88664540E2, // SET_FOCUS_POS_AND_VEL
0.0f, // float x
0.0f, // float y
0.0f, // float z
0.0f, // float offsetX
0.0f, // float offsetY
0.0f // float offsetZ
);Related STREAMING natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.