The Lab
PLAYER native

_ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET

returns void8 paramsbuild 1207

Adds an interactive focus preset for player on ped, pointing toward the given position or targetEntity, identified by name.

Signature

C
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 b1207

Parameters

#NameType
1playerPlayer
2pedPed
3presetconst char*
4xfloat
5yfloat
6zfloat
7targetEntityEntity
8nameconst char*

Facts

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

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

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