# PED::SET_PED_TO_PLAYER_WEAPON_DAMAGE_MODIFIER

- **Hash:** `0xD77AE48611B7B10A`
- **Namespace:** PED
- **Runtime name (Lua/JS):** `SetPedToPlayerWeaponDamageModifier`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PED/SET_PED_TO_PLAYER_WEAPON_DAMAGE_MODIFIER

## Signature

```c
void SET_PED_TO_PLAYER_WEAPON_DAMAGE_MODIFIER(Ped ped, float damageModifier);
```

## Parameters

- `ped` (`Ped`)
- `damageModifier` (`float`)

## Returns

`void`

## Description

Old name: _SET_PED_DAMAGE_MODIFIER

## Usage

### Lua

```lua
SetPedToPlayerWeaponDamageModifier(ped, damageModifier)

-- always available, by hash
Citizen.InvokeNative(0xD77AE48611B7B10A, ped, damageModifier)
```

### JavaScript

```js
SetPedToPlayerWeaponDamageModifier(ped, damageModifier);

// by hash
Citizen.invokeNative('0xD77AE48611B7B10A', ped, damageModifier + 0.0000001);
```

### C#

```csharp
Function.Call((Hash)0xD77AE48611B7B10A, ped, damageModifier);
```

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

## See also

- [PED::GET_PED_TO_PLAYER_WEAPON_DAMAGE_MODIFIER](https://natives.borderlinerp.com/natives/PED/GET_PED_TO_PLAYER_WEAPON_DAMAGE_MODIFIER.md)

*Sources: alloc8or RDR3 NativeDB.*
