RedM Natives

_ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET_AT_COORDS

Adds an "interactive focus mode preset" between a player and a specific set of coordinates with a target entity.

Hash0xD48227263E3D06AE
Runtime nameAddAmbientPlayerInteractiveFocusPresetAtCoords
NamespacePLAYER
SideClient
NameCommunity guess
Docs
Since build1232

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);

Parameters

NameTypeDescription
playerPlayer—
x1float—
y1float—
z1float—
presetconst char*—
x2float—
y2float—
z2float—
targetEntityEntity—
nameconst char*—

Returns void

Description

alloc8or RDR3 NativeDB

Adds an "interactive focus mode preset" between a player and a specific set of coordinates with a target entity.
To access all available presets, refer to the file located at:
\update_1.rpf\common\data\interactive_focus_mode_presets.meta

Related function:
- _DISABLE_PLAYER_INTERACTIVE_FOCUS_PRESET (0xC67A4910425F11F1)

Video: https://imgur.com/gallery/0xd48227263e3d06ae-SUJhMoA

VORPCORE RDR3natives

Adds an interactive focus mode preset between a player and a specific set of coordinates with a target entity.
To access all available presets, refer to the file located at:update_1.rpf.common.data.interactive_focus_mode_presets.meta

Usage

Lua
AddAmbientPlayerInteractiveFocusPresetAtCoords(player, x1, y1, z1, preset, x2, y2, z2, targetEntity, name)

-- always works, by hash
Citizen.InvokeNative(0xD48227263E3D06AE, player, x1, y1, z1, preset, x2, y2, z2, targetEntity, name)
JavaScript and C#
JavaScript
AddAmbientPlayerInteractiveFocusPresetAtCoords(player, x1, y1, z1, preset, x2, y2, z2, targetEntity, name);

// by hash
Citizen.invokeNative('0xD48227263E3D06AE', player, x1 + 0.0000001, y1 + 0.0000001, z1 + 0.0000001, preset, x2 + 0.0000001, y2 + 0.0000001, z2 + 0.0000001, targetEntity, name);
C#
Function.Call((Hash)0xD48227263E3D06AE, player, x1, y1, z1, preset, x2, y2, z2, targetEntity, name);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Examples

LUA · VORPCORE RDR3natives
AddPlayerInteractiveFocusPresetAtCoords(PlayerId(),GetEntityCoords(PlayerPedId()),'ForcedILONoIcon',0.0,0.0,0.0,PlayerPedId(),'text')

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.