SET_PED_TO_RAGDOLL
Makes ped ragdoll for between timeMin and timeMax milliseconds using ragdollType, returning true on success.
Signature
BOOL SET_PED_TO_RAGDOLL(Ped ped, int timeMin, int timeMax, int ragdollType, BOOL abortIfInjured, BOOL abortIfDead, const char* nmTaskMessageParameterName); // 0xAE99FB955581844A b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | timeMin | int |
| 3 | timeMax | int |
| 4 | ragdollType | int |
| 5 | abortIfInjured | BOOL |
| 6 | abortIfDead | BOOL |
| 7 | nmTaskMessageParameterName | const char* |
Facts
| 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.
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
-- ...
endconst 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) {
// ...
}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
);Related PED natives
- SET_PED_TO_RAGDOLL_WITH_FALL
- SET_PED_TO_INFORM_RESPECTED_FRIENDS
- SET_PED_TO_PLAYER_WEAPON_DAMAGE_MODIFIER
- _SET_PED_TO_DISABLE_RAGDOLL
- SET_PED_CAN_RAGDOLL
- SET_PED_CAN_RAGDOLL_FROM_PLAYER_IMPACT
- SET_PED_CAN_TELEPORT_TO_GROUP_LEADER
- SET_PED_RAGDOLL_FORCE_FALL
- SET_PED_RAGDOLL_ON_COLLISION
- SET_PED_TARGET_LOSS_RESPONSE
- _SET_PED_DEFENSIVE_AREA_TO_ANGLED_AREA
- _SET_PED_DEFENSIVE_SPHERE_ATTACHED_TO_ENTITY
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.