SetPedToRagdoll

From GT-MP
Jump to: navigation, search
SetPedToRagdoll
Client-Side Function
System-users.png Client-Side Javascript.png JavaScript


See also: GetPedCanRagdoll, SetPedCanRagdoll, CancelPedRagdoll, isPlayerRagdoll

Sets the Ragdoll type for the local player for a specific time period. (duration in milliseconds)


ragdollTypes

  • 0 : Normal ragdoll
  • 1 : Falls with stiff legs/body
  • 2 : Narrow leg stumble(may not fall)
  • 3 : Wide leg stumble(may not fall)

Syntax

API.setPedToRagdoll(int duration = -1, int ragdollType = 0);

Required Arguments

  • duration: parameter input should be in int type.
  • ragdollType: parameter input should be in int type.

Usage example(s)

API.setPedToRagdoll(int duration, int ragdollType);


References