The Lab
CAMERA native

SET_GAMEPLAY_ENTITY_HINT

returns void9 paramsbuild 1207

Points the gameplay camera towards entity plus an offset as a hint. Several timing parameters are not well documented.

Signature

C
void SET_GAMEPLAY_ENTITY_HINT(Entity entity, float xOffset, float yOffset, float zOffset, BOOL p4, int p5, int p6, int p7, Any p8); // 0xD1F7F32640ADFD12 b1207

Parameters

#NameType
1entityEntity
2xOffsetfloat
3yOffsetfloat
4zOffsetfloat
5p4BOOL
6p5int
7p6int
8p7int
9p8Any

Facts

Facts about SET_GAMEPLAY_ENTITY_HINT
Name
SET_GAMEPLAY_ENTITY_HINT
Hash
0xD1F7F32640ADFD12
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(0xD1F7F32640ADFD12, -- SET_GAMEPLAY_ENTITY_HINT
  PlayerPedId(), -- Entity entity
  0.0, -- float xOffset
  0.0, -- float yOffset
  0.0, -- float zOffset
  false, -- BOOL p4
  0, -- int p5
  0, -- int p6
  0, -- int p7
  0 -- Any p8
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xD1F7F32640ADFD12", // SET_GAMEPLAY_ENTITY_HINT
  PlayerPedId(), // Entity entity
  0.0, // float xOffset
  0.0, // float yOffset
  0.0, // float zOffset
  false, // BOOL p4
  0, // int p5
  0, // int p6
  0, // int p7
  0 // Any p8
);
C#
Function.Call((Hash)0xD1F7F32640ADFD12, // SET_GAMEPLAY_ENTITY_HINT
  API.PlayerPedId(), // Entity entity
  0.0f, // float xOffset
  0.0f, // float yOffset
  0.0f, // float zOffset
  false, // BOOL p4
  0, // int p5
  0, // int p6
  0, // int p7
  0 // Any p8
);
All CAMERA natives

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