Skip to content

PedManager

@vimp-mp/types 2.0.1

Interface · Client API

Manages ped instances in this scripting context.

ts
interface PedManager

Members

all

ts
readonly all: Array<Ped>

All known non-destroyed peds, including non-streamed remote peds.

count

ts
readonly count: number

Number of known non-destroyed peds.

create

ts
create(model: string | number, position: Vec3, heading?: number, options?: PedCreateOptions): Ped | null

Creates a client-local ped, or returns null if its model cannot be loaded.

destroy

ts
destroy(id: number): boolean

Destroys the client-local ped identified by its wrapper id.

getById

ts
getById(id: number): Ped | null

Returns a ped by client-local wrapper id.

getByRemoteId

ts
getByRemoteId(remoteId: number): Ped | null

Returns a remote ped by server/network id.

VIMP developer documentation