SET_GAMEPLAY_ENTITY_HINT
Points the gameplay camera towards entity plus an offset as a hint. Several timing parameters are not well documented.
Signature
void SET_GAMEPLAY_ENTITY_HINT(Entity entity, float xOffset, float yOffset, float zOffset, BOOL p4, int p5, int p6, int p7, Any p8); // 0xD1F7F32640ADFD12 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | xOffset | float |
| 3 | yOffset | float |
| 4 | zOffset | float |
| 5 | p4 | BOOL |
| 6 | p5 | int |
| 7 | p6 | int |
| 8 | p7 | int |
| 9 | p8 | Any |
Facts
| 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.
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
)// 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
);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
);Related CAMERA natives
- SET_GAMEPLAY_CAM_IGNORE_ENTITY_COLLISION_THIS_UPDATE
- SET_GAMEPLAY_COORD_HINT
- SET_GAMEPLAY_HINT_BASE_ORBIT_PITCH_OFFSET
- SET_GAMEPLAY_HINT_CAMERA_RELATIVE_SIDE_OFFSET
- SET_GAMEPLAY_HINT_CAMERA_RELATIVE_VERTICAL_OFFSET
- SET_GAMEPLAY_HINT_FOLLOW_DISTANCE_SCALAR
- SET_GAMEPLAY_HINT_FOV
- SET_GAMEPLAY_OBJECT_HINT
- SET_GAMEPLAY_PED_HINT
- SET_GAMEPLAY_VEHICLE_HINT
- SET_GAMEPLAY_CAM_FOLLOW_PED_THIS_UPDATE
- SET_GAMEPLAY_CAM_MAX_MOTION_BLUR_STRENGTH_THIS_UPDATE
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.