RedM Natives

SET_PED_TO_RAGDOLL

Hash0xAE99FB955581844A
Runtime nameSetPedToRagdoll
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xAE99FB955581844A

Signature

BOOL SET_PED_TO_RAGDOLL(Ped ped, int timeMin, int timeMax, int ragdollType, BOOL abortIfInjured, BOOL abortIfDead, const char* nmTaskMessageParameterName);

Parameters

NameTypeDescription
pedPed—
timeMinint—
timeMaxint—
ragdollTypeint—
abortIfInjuredBOOL—
abortIfDeadBOOL—
nmTaskMessageParameterNameconst char*—

Returns BOOL

Description

nmTaskMessageParameterName: See physicstasks.ymt. Search for DraggedByCart or 0xD00820D7 (Used in R* SP Script marston8)

Usage

Lua
local retval = SetPedToRagdoll(ped, timeMin, timeMax, ragdollType, abortIfInjured, abortIfDead, nmTaskMessageParameterName)

-- always works, by hash
local retval = Citizen.InvokeNative(0xAE99FB955581844A, ped, timeMin, timeMax, ragdollType, abortIfInjured, abortIfDead, nmTaskMessageParameterName, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = SetPedToRagdoll(ped, timeMin, timeMax, ragdollType, abortIfInjured, abortIfDead, nmTaskMessageParameterName);

// by hash
const retval = Citizen.invokeNative('0xAE99FB955581844A', ped, timeMin, timeMax, ragdollType, abortIfInjured, abortIfDead, nmTaskMessageParameterName, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0xAE99FB955581844A, ped, timeMin, timeMax, ragdollType, abortIfInjured, abortIfDead, nmTaskMessageParameterName);

Sources

alloc8or RDR3 NativeDB

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