SET_PED_TO_RAGDOLL
Hash
0xAE99FB955581844ARuntime name
SetPedToRagdollNamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xAE99FB955581844ASignature
BOOL SET_PED_TO_RAGDOLL(Ped ped, int timeMin, int timeMax, int ragdollType, BOOL abortIfInjured, BOOL abortIfDead, const char* nmTaskMessageParameterName);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
timeMin | int | — |
timeMax | int | — |
ragdollType | int | — |
abortIfInjured | BOOL | — |
abortIfDead | BOOL | — |
nmTaskMessageParameterName | const char* | — |
Returns BOOL
Description
nmTaskMessageParameterName: See physicstasks.ymt. Search for DraggedByCart or 0xD00820D7 (Used in R* SP Script marston8)
Usage
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#
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());bool retval = Function.Call<bool>((Hash)0xAE99FB955581844A, ped, timeMin, timeMax, ragdollType, abortIfInjured, abortIfDead, nmTaskMessageParameterName);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.