# PLAYER::_ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET

- **Hash:** `0x3946FC742AC305CD`
- **Namespace:** PLAYER
- **Runtime name (Lua/JS):** `AddAmbientPlayerInteractiveFocusPreset`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PLAYER/_ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET

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

## Parameters

- `player` (`Player`)
- `ped` (`Ped`)
- `preset` (`const char*`)
- `x` (`float`)
- `y` (`float`)
- `z` (`float`)
- `targetEntity` (`Entity`)
- `name` (`const char*`)

## Returns

`void`

## Description

*Source: alloc8or RDR3 NativeDB*

Associates a specific "interactive focus mode preset" between a player and a ped, with a specified location and target entity.
To access all available presets, refer to the file located at:
`\update_1.rpf\common\data\interactive_focus_mode_presets.meta`
Video: https://imgur.com/gallery/0x3946fc742ac305cd-1uJIRNr

*Source: VORPCORE RDR3natives*

Associates a specific interactive focus mode preset between a player and a ped, with a specified location and 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
AddAmbientPlayerInteractiveFocusPreset(player, ped, preset, x, y, z, targetEntity, name)

-- always available, by hash
Citizen.InvokeNative(0x3946FC742AC305CD, player, ped, preset, x, y, z, targetEntity, name)
```

### JavaScript

```js
AddAmbientPlayerInteractiveFocusPreset(player, ped, preset, x, y, z, targetEntity, name);

// by hash
Citizen.invokeNative('0x3946FC742AC305CD', player, ped, preset, x + 0.0000001, y + 0.0000001, z + 0.0000001, targetEntity, name);
```

### C#

```csharp
Function.Call((Hash)0x3946FC742AC305CD, player, ped, preset, x, y, z, 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.

*Sources: alloc8or RDR3 NativeDB, VORPCORE RDR3natives.*
