The Lab
PLAYER native

_ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET_AT_COORDS

returns void10 paramsbuild 1232

Adds an interactive focus preset for player at the given coordinates, identified by name.

Signature

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

Parameters

#NameType
1playerPlayer
2x1float
3y1float
4z1float
5presetconst char*
6x2float
7y2float
8z2float
9targetEntityEntity
10nameconst char*

Facts

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

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

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