# PLAYER::_GET_AI_PLAYER_DEFENSE_MODIFIER_AGAINST_AI

- **Hash:** `0x2E78D822208E740A`
- **Namespace:** PLAYER
- **Runtime name (Lua/JS):** `GetAiPlayerDefenseModifierAgainstAi`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PLAYER/_GET_AI_PLAYER_DEFENSE_MODIFIER_AGAINST_AI

## Signature

```c
float _GET_AI_PLAYER_DEFENSE_MODIFIER_AGAINST_AI(Player player);
```

## Parameters

- `player` (`Player`)

## Returns

`float`

## Usage

### Lua

```lua
local retval = GetAiPlayerDefenseModifierAgainstAi(player)

-- always available, by hash
local retval = Citizen.InvokeNative(0x2E78D822208E740A, player, Citizen.ResultAsFloat())
```

### JavaScript

```js
const retval = GetAiPlayerDefenseModifierAgainstAi(player);

// by hash
const retval = Citizen.invokeNative('0x2E78D822208E740A', player, Citizen.returnResultAnyway(), Citizen.resultAsFloat());
```

### C#

```csharp
float retval = Function.Call<float>((Hash)0x2E78D822208E740A, player);
```

- 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.

## See also

- [PLAYER::_SET_AI_PLAYER_DEFENSE_MODIFIER_AGAINST_AI](https://natives.borderlinerp.com/natives/PLAYER/_SET_AI_PLAYER_DEFENSE_MODIFIER_AGAINST_AI.md) — Sets Player's Defense against AI modifier

*Sources: alloc8or RDR3 NativeDB.*
