PedManager
@vimp-mp/types 2.0.1Manages ped instances in this scripting context.
ts
interface PedManagerMembers
all
ts
readonly all: Array<Ped>All known non-destroyed peds, including non-streamed remote peds.
count
ts
readonly count: numberNumber of known non-destroyed peds.
create
ts
create(model: string | number, position: Vec3, heading?: number, options?: PedCreateOptions): Ped | nullCreates a client-local ped, or returns null if its model cannot be loaded.
destroy
ts
destroy(id: number): booleanDestroys the client-local ped identified by its wrapper id.
getById
ts
getById(id: number): Ped | nullReturns a ped by client-local wrapper id.
getByRemoteId
ts
getByRemoteId(remoteId: number): Ped | nullReturns a remote ped by server/network id.