SET_PED_TO_RAGDOLL_WITH_FALL
Makes ped ragdoll and fall in the direction given by falldirX/Y/Z, returning true on success.
Signature
BOOL SET_PED_TO_RAGDOLL_WITH_FALL(Ped ped, int timeMin, int timeMax, int ragdollType, float falldirX, float falldirY, float falldirZ, float p7, float p8, float p9, float p10, float p11, float p12, float p13); // 0xD76632D99E4966C8 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | timeMin | int |
| 3 | timeMax | int |
| 4 | ragdollType | int |
| 5 | falldirX | float |
| 6 | falldirY | float |
| 7 | falldirZ | float |
| 8 | p7 | float |
| 9 | p8 | float |
| 10 | p9 | float |
| 11 | p10 | float |
| 12 | p11 | float |
| 13 | p12 | float |
| 14 | p13 | float |
Facts
| Name | SET_PED_TO_RAGDOLL_WITH_FALL |
|---|---|
| Hash | 0xD76632D99E4966C8 |
| 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(0xD76632D99E4966C8, -- SET_PED_TO_RAGDOLL_WITH_FALL
PlayerPedId(), -- Ped ped
0, -- int timeMin
0, -- int timeMax
0, -- int ragdollType
0.0, -- float falldirX
0.0, -- float falldirY
0.0, -- float falldirZ
0.0, -- float p7
0.0, -- float p8
0.0, -- float p9
0.0, -- float p10
0.0, -- float p11
0.0, -- float p12
0.0 -- float p13
)
if result then
-- ...
end// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0xD76632D99E4966C8", // SET_PED_TO_RAGDOLL_WITH_FALL
PlayerPedId(), // Ped ped
0, // int timeMin
0, // int timeMax
0, // int ragdollType
0.0, // float falldirX
0.0, // float falldirY
0.0, // float falldirZ
0.0, // float p7
0.0, // float p8
0.0, // float p9
0.0, // float p10
0.0, // float p11
0.0, // float p12
0.0, // float p13
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xD76632D99E4966C8, // SET_PED_TO_RAGDOLL_WITH_FALL
API.PlayerPedId(), // Ped ped
0, // int timeMin
0, // int timeMax
0, // int ragdollType
0.0f, // float falldirX
0.0f, // float falldirY
0.0f, // float falldirZ
0.0f, // float p7
0.0f, // float p8
0.0f, // float p9
0.0f, // float p10
0.0f, // float p11
0.0f, // float p12
0.0f // float p13
);Related PED natives
- SET_PED_TO_RAGDOLL
- SET_PED_RAGDOLL_FORCE_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_ON_COLLISION
- SET_PED_TARGET_LOSS_RESPONSE
- _GET_IS_PED_IN_DISPUTE_WITH_PED
- _SET_PED_DEFENSIVE_AREA_TO_ANGLED_AREA
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.