_ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET_AT_COORDS
Adds an interactive focus preset for player at the given coordinates, identified by name.
Signature
void _ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET_AT_COORDS(Player player, float x1, float y1, float z1, const char* preset, float x2, float y2, float z2, Entity targetEntity, const char* name); // 0xD48227263E3D06AE b1232Parameters
| # | Name | Type |
|---|---|---|
| 1 | player | Player |
| 2 | x1 | float |
| 3 | y1 | float |
| 4 | z1 | float |
| 5 | preset | const char* |
| 6 | x2 | float |
| 7 | y2 | float |
| 8 | z2 | float |
| 9 | targetEntity | Entity |
| 10 | name | const char* |
Facts
| Name | _ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET_AT_COORDS |
|---|---|
| Hash | 0xD48227263E3D06AE |
| Namespace | |
| Returns | void |
| Game build | 1232 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0xD48227263E3D06AE, -- _ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET_AT_COORDS
PlayerId(), -- Player player
0.0, -- float x1
0.0, -- float y1
0.0, -- float z1
"text", -- const char* preset
0.0, -- float x2
0.0, -- float y2
0.0, -- float z2
PlayerPedId(), -- Entity targetEntity
"text" -- const char* name
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xD48227263E3D06AE", // _ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET_AT_COORDS
PlayerId(), // Player player
0.0, // float x1
0.0, // float y1
0.0, // float z1
"text", // const char* preset
0.0, // float x2
0.0, // float y2
0.0, // float z2
PlayerPedId(), // Entity targetEntity
"text" // const char* name
);Function.Call((Hash)0xD48227263E3D06AE, // _ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET_AT_COORDS
API.PlayerId(), // Player player
0.0f, // float x1
0.0f, // float y1
0.0f, // float z1
"text", // const char* preset
0.0f, // float x2
0.0f, // float y2
0.0f, // float z2
API.PlayerPedId(), // Entity targetEntity
"text" // const char* name
);Related PLAYER natives
- _ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET
- _DISABLE_PLAYER_INTERACTIVE_FOCUS_PRESET
- _ADD_PLAYER_AS_FOLLOW_TARGET
- _EAGLE_EYE_ADD_FOCUS_SKILL
- _EAGLE_EYE_CAN_PLAYER_FOCUS_ON_TRACK
- CLEAR_PLAYER_HAS_DAMAGED_AT_LEAST_ONE_NON_ANIMAL_PED
- CLEAR_PLAYER_HAS_DAMAGED_AT_LEAST_ONE_PED
- GET_ENTITY_PLAYER_IS_FREE_AIMING_AT
- HAS_PLAYER_DAMAGED_AT_LEAST_ONE_NON_ANIMAL_PED
- HAS_PLAYER_DAMAGED_AT_LEAST_ONE_PED
- IS_PLAYER_FREE_AIMING_AT_ENTITY
- _CLEAR_PED_EAGLE_EYE_TRAILS_FOR_PLAYER
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.