_ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET
Adds an interactive focus preset for player on ped, pointing toward the given position or targetEntity, identified by name.
Signature
void _ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET(Player player, Ped ped, const char* preset, float x, float y, float z, Entity targetEntity, const char* name); // 0x3946FC742AC305CD b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | player | Player |
| 2 | ped | Ped |
| 3 | preset | const char* |
| 4 | x | float |
| 5 | y | float |
| 6 | z | float |
| 7 | targetEntity | Entity |
| 8 | name | const char* |
Facts
| Name | _ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET |
|---|---|
| Hash | 0x3946FC742AC305CD |
| 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(0x3946FC742AC305CD, -- _ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET
PlayerId(), -- Player player
PlayerPedId(), -- Ped ped
"text", -- const char* preset
0.0, -- float x
0.0, -- float y
0.0, -- float z
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("0x3946FC742AC305CD", // _ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET
PlayerId(), // Player player
PlayerPedId(), // Ped ped
"text", // const char* preset
0.0, // float x
0.0, // float y
0.0, // float z
PlayerPedId(), // Entity targetEntity
"text" // const char* name
);Function.Call((Hash)0x3946FC742AC305CD, // _ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET
API.PlayerId(), // Player player
API.PlayerPedId(), // Ped ped
"text", // const char* preset
0.0f, // float x
0.0f, // float y
0.0f, // float z
API.PlayerPedId(), // Entity targetEntity
"text" // const char* name
);Related PLAYER natives
- _ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET_AT_COORDS
- _DISABLE_PLAYER_INTERACTIVE_FOCUS_PRESET
- _ADD_PLAYER_AS_FOLLOW_TARGET
- _EAGLE_EYE_ADD_FOCUS_SKILL
- _EAGLE_EYE_CAN_PLAYER_FOCUS_ON_TRACK
- _CLEAR_PED_EAGLE_EYE_TRAILS_FOR_PLAYER
- _EAGLE_EYE_SET_FOCUS_ON_ASSOCIATED_CLUE_TRAIL
- _FORMAT_PLAYER_NAME_STRING
- _GET_ACTIVE_HORSE_FOR_PLAYER
- _GET_AI_PLAYER_DEFENSE_MODIFIER_AGAINST_AI
- _GET_HAS_PLAYER_DISCOVERED_CHARACTER_NAME_SP
- _GET_PLAYER_CACHED_DEAD_EYE_AMOUNT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.