SET_PED_TO_RAGDOLL
p4/p5: Unusued in TU27 ### Ragdoll Types **0**: CTaskNMRelax **1**: CTaskNMScriptControl: Hardcoded not to work in networked environments. **Else**: CTaskNMBalance **This is the server-side RPC native equivalent of the client native [SET_PED_TO_RAGDOLL](?\_0xAE99FB955581844A).**
CFX
Signature
lua
SetPedToRagdoll(PlayerPedId(), 0, 0, 0, true, true, true)
-- returns voidParameters
| Name | Type | Description |
|---|---|---|
| Ped | The ped to ragdoll. | |
| int | Time(ms) Ped is in ragdoll mode; only applies to ragdoll types 0 and not 1. | |
| int | — | |
| int | — | |
| BOOL | unused | |
| BOOL | unused | |
| BOOL | — |
Usage
lua
SetPedToRagdoll(PlayerPedId(), 0, 0, 0, true, true, true)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- API set
- Source
- cfx
Source: cfx
