RedM Natives

SET_PED_CAN_RAGDOLL

SET_PED_CAN_RAGDOLL This is the server-side RPC native equivalent of the client native SET_PED_CAN_RAGDOLL.

Hash0xCF1384C4
Runtime nameSetPedCanRagdoll
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void SET_PED_CAN_RAGDOLL(Ped ped, BOOL toggle);

Parameters

NameTypeDescription
pedPed—
toggleBOOL—

Returns void

Description

Cfx.re native reference

SET_PED_CAN_RAGDOLL

This is the server-side RPC native equivalent of the client native SET_PED_CAN_RAGDOLL.

Usage

Lua
SetPedCanRagdoll(ped, toggle)

-- always works, by hash
Citizen.InvokeNative(0xcf1384c4, ped, toggle)
JavaScript and C#
JavaScript
SetPedCanRagdoll(ped, toggle);

// by hash
Citizen.invokeNative('0xcf1384c4', ped, toggle);
C#
Function.Call((Hash)0xcf1384c4, ped, toggle);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.