# PED::SET_PED_TO_RAGDOLL_WITH_FALL

- **Hash:** `0xD76632D99E4966C8`
- **Namespace:** PED
- **Runtime name (Lua/JS):** `SetPedToRagdollWithFall`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PED/SET_PED_TO_RAGDOLL_WITH_FALL

## Signature

```c
BOOL SET_PED_TO_RAGDOLL_WITH_FALL(Ped ped, int timeMin, int timeMax, int ragdollType, float falldirX, float falldirY, float falldirZ, float p7, float p8, float p9, float p10, float p11, float p12, float p13);
```

## Parameters

- `ped` (`Ped`)
- `timeMin` (`int`)
- `timeMax` (`int`)
- `ragdollType` (`int`)
- `falldirX` (`float`)
- `falldirY` (`float`)
- `falldirZ` (`float`)
- `p7` (`float`)
- `p8` (`float`)
- `p9` (`float`)
- `p10` (`float`)
- `p11` (`float`)
- `p12` (`float`)
- `p13` (`float`)

## Returns

`BOOL`

## Usage

### Lua

```lua
local retval = SetPedToRagdollWithFall(ped, timeMin, timeMax, ragdollType, falldirX, falldirY, falldirZ, p7, p8, p9, p10, p11, p12, p13)

-- always available, by hash
local retval = Citizen.InvokeNative(0xD76632D99E4966C8, ped, timeMin, timeMax, ragdollType, falldirX, falldirY, falldirZ, p7, p8, p9, p10, p11, p12, p13, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = SetPedToRagdollWithFall(ped, timeMin, timeMax, ragdollType, falldirX, falldirY, falldirZ, p7, p8, p9, p10, p11, p12, p13);

// by hash
const retval = Citizen.invokeNative('0xD76632D99E4966C8', ped, timeMin, timeMax, ragdollType, falldirX + 0.0000001, falldirY + 0.0000001, falldirZ + 0.0000001, p7 + 0.0000001, p8 + 0.0000001, p9 + 0.0000001, p10 + 0.0000001, p11 + 0.0000001, p12 + 0.0000001, p13 + 0.0000001, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0xD76632D99E4966C8, ped, timeMin, timeMax, ragdollType, falldirX, falldirY, falldirZ, p7, p8, p9, p10, p11, p12, p13);
```

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

*Sources: alloc8or RDR3 NativeDB.*
