The Lab
STREAMING native

SET_FOCUS_POS_AND_VEL

returns void6 paramsbuild 1207

Moves the streaming focus to the given position with an offset or velocity hint.

Call CLEAR_FOCUS to restore normal streaming.

Signature

C
void SET_FOCUS_POS_AND_VEL(float x, float y, float z, float offsetX, float offsetY, float offsetZ); // 0x25F6EF88664540E2 b1207

Parameters

#NameType
1xfloat
2yfloat
3zfloat
4offsetXfloat
5offsetYfloat
6offsetZfloat

Facts

Facts about SET_FOCUS_POS_AND_VEL
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.

Lua
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
)
JavaScript
// 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
);
C#
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
);
All STREAMING natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.