Skip to content

PedExtras ​

@vimp-mp/types 2.0.1

Interface · Server API

Initial state applied when creating a server ped.

ts
interface PedExtras

Members ​

accuracy ​

ts
accuracy?: number

Initial accuracy, clamped by runtime to 0-100. Default: 0.

alpha ​

ts
alpha?: number

Initial alpha, clamped by runtime to 0-255. Default: 255.

armour ​

ts
armour?: number

Initial armour, default 0.

collision ​

ts
collision?: boolean

Initial collision state. Default: true.

dimension ​

ts
dimension?: number

Initial virtual world (dimension). Default: 0.

frozen ​

ts
frozen?: boolean

Initial frozen state. Default: false.

health ​

ts
health?: number

Initial health (HP), default 200.

invincible ​

ts
invincible?: boolean

Initial invincibility. Default: false.

maxHealth ​

ts
maxHealth?: number

Initial maximum health, clamped by runtime to 1-10000.

placeOnGround ​

ts
placeOnGround?: boolean

Place streamed native ped on ground on the client. Default: true.

visible ​

ts
visible?: boolean

Initial client-side visibility. Default: true.

weapon ​

ts
weapon?: Weapon | null

Initial single authoritative equipped weapon. Pass null for unarmed.

VIMP developer documentation