Player::setRagdollFlag
Not available on SYNC MP yet
This member is part of the RAGE:MP API but SYNC MP does not implement it yet (Client-side JavaScript). Calling it does nothing or throws.
Works for both player and peds, but some flags don't seem to work for the player (1, for example)
1 - Blocks ragdolling when shot.
2 - Blocks ragdolling when hit by a vehicle. The ped still might play a falling animation.
4 - Blocks ragdolling when set on fire.
-----------------------------------------------------------------------
There seem to be 26 flags
Syntax
player.setRagdollFlag(flag);
Required Arguments
- flag: int
Return value
- Undefined
Example
// todo