# PLAYER::_ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET_AT_COORDS

- **Hash:** `0xD48227263E3D06AE`
- **Namespace:** PLAYER
- **Runtime name (Lua/JS):** `AddAmbientPlayerInteractiveFocusPresetAtCoords`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described with examples
- **Since game build:** 1232
- **URL:** https://natives.borderlinerp.com/natives/PLAYER/_ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET_AT_COORDS

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

## Parameters

- `player` (`Player`)
- `x1` (`float`)
- `y1` (`float`)
- `z1` (`float`)
- `preset` (`const char*`)
- `x2` (`float`)
- `y2` (`float`)
- `z2` (`float`)
- `targetEntity` (`Entity`)
- `name` (`const char*`)

## Returns

`void`

## Description

*Source: 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

*Source: 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

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

-- always available, by hash
Citizen.InvokeNative(0xD48227263E3D06AE, player, x1, y1, z1, preset, x2, y2, z2, targetEntity, name)
```

### JavaScript

```js
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#

```csharp
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

*Source: VORPCORE RDR3natives*

```lua
AddPlayerInteractiveFocusPresetAtCoords(PlayerId(),GetEntityCoords(PlayerPedId()),'ForcedILONoIcon',0.0,0.0,0.0,PlayerPedId(),'text')
```

*Sources: alloc8or RDR3 NativeDB, VORPCORE RDR3natives.*
