SET_PED_TO_RAGDOLL_WITH_FALL
Hash
0xD76632D99E4966C8Runtime name
SetPedToRagdollWithFallNamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xD76632D99E4966C8Signature
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);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
timeMin | int | — |
timeMax | int | — |
ragdollType | int | — |
falldirX | float | — |
falldirY | float | — |
falldirZ | float | — |
p7 | float | — |
p8 | float | — |
p9 | float | — |
p10 | float | — |
p11 | float | — |
p12 | float | — |
p13 | float | — |
Returns BOOL
Usage
local retval = SetPedToRagdollWithFall(ped, timeMin, timeMax, ragdollType, falldirX, falldirY, falldirZ, p7, p8, p9, p10, p11, p12, p13)
-- always works, by hash
local retval = Citizen.InvokeNative(0xD76632D99E4966C8, ped, timeMin, timeMax, ragdollType, falldirX, falldirY, falldirZ, p7, p8, p9, p10, p11, p12, p13, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = SetPedToRagdollWithFall(ped, timeMin, timeMax, ragdollType, falldirX, falldirY, falldirZ, p7, p8, p9, p10, p11, p12, p13);
// by hash
const retval = Citizen.invokeNative('0xD76632D99E4966C8', ped, timeMin, timeMax, ragdollType, falldirX + 0.0000001, falldirY + 0.0000001, falldirZ + 0.0000001, p7 + 0.0000001, p8 + 0.0000001, p9 + 0.0000001, p10 + 0.0000001, p11 + 0.0000001, p12 + 0.0000001, p13 + 0.0000001, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0xD76632D99E4966C8, ped, timeMin, timeMax, ragdollType, falldirX, falldirY, falldirZ, p7, p8, p9, p10, p11, p12, p13);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.