# CFX::SET_PED_CAN_RAGDOLL

- **Hash:** `0xCF1384C4`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `SetPedCanRagdoll`
- **Side:** server (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/SET_PED_CAN_RAGDOLL

## Signature

```c
void SET_PED_CAN_RAGDOLL(Ped ped, BOOL toggle);
```

## Parameters

- `ped` (`Ped`)
- `toggle` (`BOOL`)

## Returns

`void`

## Description

*Source: Cfx.re native reference*

SET_PED_CAN_RAGDOLL

**This is the server-side RPC native equivalent of the client native [SET_PED_CAN_RAGDOLL](?\_0xB128377056A54E2A).**

## Usage

### Lua

```lua
SetPedCanRagdoll(ped, toggle)

-- always available, by hash
Citizen.InvokeNative(0xcf1384c4, ped, toggle)
```

### JavaScript

```js
SetPedCanRagdoll(ped, toggle);

// by hash
Citizen.invokeNative('0xcf1384c4', ped, toggle);
```

### C#

```csharp
Function.Call((Hash)0xcf1384c4, ped, toggle);
```

*Sources: Cfx.re native reference.*
