RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. SET_PED_TO_RAGDOLL_WITH_FALL

SET_PED_TO_RAGDOLL_WITH_FALL

```cpp enum eNMFallType { TYPE_FROM_HIGH = 0, TYPE_OVER_WALL = 1, TYPE_DOWN_STAIRS = 2, TYPE_DIE_TYPES = 3, TYPE_DIE_FROM_HIGH = 4, TYPE_DIE_OVER_WALL = 5, TYPE_DIE_DOWN_STAIRS = 6 } ``` ``` Return variable is never used in R*'s scripts. Not sure what p2 does. It seems like it would be a time judging by it's usage in R*'s scripts, but didn't seem to affect anything in my testings. x, y, and z are coordinates, most likely to where the ped will fall. p7 is probably the force of the fall, but untested, so I left the variable name the same. p8 to p13 are always 0f in R*'s scripts. (Simplified) Example of the usage of the function from R*'s scripts: ped::set_ped_to_ragdoll_with_fall(ped, 1500, 2000, 1, -entity::get_entity_forward_vector(ped), 1f, 0f, 0f, 0f, 0f, 0f, 0f); ``` **This is the server-side RPC native equivalent of the client native [SET_PED_TO_RAGDOLL_WITH_FALL](?\_0xD76632D99E4966C8).**

CFX

Signature

lua
SetPedToRagdollWithFall(PlayerPedId(), 0, 0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
-- returns void

Parameters

NameTypeDescription
PedThe ped to ragdoll.
int—
int—
intThe type of fall.
floatThe x direction of the fall.
floatThe y direction of the fall.
floatThe z direction of the fall.
floatThe ground height (z).
floatunused
floatunused
floatunused
floatunused
floatunused
floatunused

Usage

lua
SetPedToRagdollWithFall(PlayerPedId(), 0, 0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)

Generated from the native name, hash, and parameter list. Add a real example.

Details

Hash
API set
Source
cfx

Source: cfx

On this page

  • Signature
  • Parameters
  • Usage
  • Details