The Lab
PED native

SET_PED_TO_RAGDOLL

returns BOOL7 paramsbuild 1207

Makes ped ragdoll for between timeMin and timeMax milliseconds using ragdollType, returning true on success.

Signature

C
BOOL SET_PED_TO_RAGDOLL(Ped ped, int timeMin, int timeMax, int ragdollType, BOOL abortIfInjured, BOOL abortIfDead, const char* nmTaskMessageParameterName); // 0xAE99FB955581844A b1207

Parameters

#NameType
1pedPed
2timeMinint
3timeMaxint
4ragdollTypeint
5abortIfInjuredBOOL
6abortIfDeadBOOL
7nmTaskMessageParameterNameconst char*

Facts

Facts about SET_PED_TO_RAGDOLL
Name
SET_PED_TO_RAGDOLL
Hash
0xAE99FB955581844A
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0xAE99FB955581844A, -- SET_PED_TO_RAGDOLL
  PlayerPedId(), -- Ped ped
  0, -- int timeMin
  0, -- int timeMax
  0, -- int ragdollType
  false, -- BOOL abortIfInjured
  false, -- BOOL abortIfDead
  "text" -- const char* nmTaskMessageParameterName
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0xAE99FB955581844A", // SET_PED_TO_RAGDOLL
  PlayerPedId(), // Ped ped
  0, // int timeMin
  0, // int timeMax
  0, // int ragdollType
  false, // BOOL abortIfInjured
  false, // BOOL abortIfDead
  "text", // const char* nmTaskMessageParameterName
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xAE99FB955581844A, // SET_PED_TO_RAGDOLL
  API.PlayerPedId(), // Ped ped
  0, // int timeMin
  0, // int timeMax
  0, // int ragdollType
  false, // BOOL abortIfInjured
  false, // BOOL abortIfDead
  "text" // const char* nmTaskMessageParameterName
);
All PED natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.