# PLAYER::_SET_PLAYER_DEFENSE_TYPE_MODIFIER

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

## Signature

```c
void _SET_PLAYER_DEFENSE_TYPE_MODIFIER(Player player, int type, float defenseModifier);
```

## Parameters

- `player` (`Player`)
- `type` (`int`)
- `defenseModifier` (`float`)

## Returns

`void`

## Description

bullet damage modifier: type = 4
explosive damage Defense mod: type = 7
fire damage Defense mod: type = 8, 15

## Usage

### Lua

```lua
SetPlayerDefenseTypeModifier(player, type, defenseModifier)

-- always available, by hash
Citizen.InvokeNative(0x93F499CAE53FCD05, player, type, defenseModifier)
```

### JavaScript

```js
SetPlayerDefenseTypeModifier(player, type, defenseModifier);

// by hash
Citizen.invokeNative('0x93F499CAE53FCD05', player, type, defenseModifier + 0.0000001);
```

### C#

```csharp
Function.Call((Hash)0x93F499CAE53FCD05, player, type, defenseModifier);
```

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