Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Ped

Hierarchy

Index

Constructors

constructor

  • new Ped(handle: number): Ped

Accessors

Bones

CanRagdoll

  • get CanRagdoll(): boolean
  • set CanRagdoll(value: boolean): void

CurrentVehicle

DrivingStyle

Handle

  • get Handle(): number

Heading

  • get Heading(): number
  • set Heading(heading: number): void

Health

  • get Health(): number
  • set Health(amount: number): void

IsCollisionEnabled

  • get IsCollisionEnabled(): boolean
  • set IsCollisionEnabled(value: boolean): void

IsInGroup

  • get IsInGroup(): boolean

LastVehicle

MaxHealth

  • get MaxHealth(): number
  • set MaxHealth(amount: number): void

NeverLeavesGroup

  • set NeverLeavesGroup(value: boolean): void

Position

PositionNoOffset

  • set PositionNoOffset(position: Vector3): void

VehicleTryingToEnter

  • get VehicleTryingToEnter(): Vehicle

Methods

applyDamage

  • applyDamage(damageAmount: number): void

cancelRagdoll

  • cancelRagdoll(): void

clearBloodDamage

  • clearBloodDamage(): void

clearLastWeaponDamage

  • clearLastWeaponDamage(): void

clone

  • clone(heading: number): Ped

delete

  • delete(): void

exists

  • exists(): boolean

getConfigFlag

  • getConfigFlag(flagId: number): boolean

getLastWeaponImpactPosition

  • getLastWeaponImpactPosition(): Vector3

giveHelmet

  • giveHelmet(canBeRemovedByPed: boolean, helmetType: HelmetType, textureIndex: number): void

hasBeenDamagedBy

hasBeenDamagedByAnyMeleeWeapon

  • hasBeenDamagedByAnyMeleeWeapon(): boolean

hasBeenDamagedByAnyWeapon

  • hasBeenDamagedByAnyWeapon(): boolean

isAlive

  • isAlive(): boolean

isDead

  • isDead(): boolean

isInAnyVehicle

  • isInAnyVehicle(): boolean

isInVehicle

  • isInVehicle(vehicle: Vehicle): boolean

isSittingInAnyVehicle

  • isSittingInAnyVehicle(): boolean

isSittingInVehicle

  • isSittingInVehicle(vehicle: Vehicle): boolean

kill

  • kill(): void

leaveGroup

  • leaveGroup(): void

openParachute

  • openParachute(): void

playAmbientSpeed

  • playAmbientSpeed(speechName: string, voiceName?: string, modifier?: SpeechModifier): void
  • Parameters

    • speechName: string
    • Default value voiceName: string = ""
    • Default value modifier: SpeechModifier = SpeechModifier.Standard

    Returns void

ragdoll

  • ragdoll(duration?: number, ragdollType?: RagdollType): void
  • Parameters

    • Default value duration: number = -1
    • Default value ragdollType: RagdollType = RagdollType.Normal

    Returns void

removeHelmet

  • removeHelmet(instantly: boolean): void

resetConfigFlag

  • resetConfigFlag(flagId: number): void

resetVisibleDamage

  • resetVisibleDamage(): void

resurrect

  • resurrect(): void

setConfigFlag

  • setConfigFlag(flagId: number, value: boolean): void

setIntoVehicle

Static exists

  • exists(ped: Ped): boolean

Generated using TypeDoc