Class LocalPed
Inheritance
BaseObject
LocalPed
Inherited Members
Ped.type
Ped.valid
Ped.id
Ped.destroy
Ped.getMetaDataKeys
Ped.refCount
Package: @altmp/altv-types
Syntax
class LocalPed extends Ped
Constructors
|
Improve this Doc
View Source
LocalPed(string | number, number, IVector3, IVector3)
Declaration
public LocalPed(model: string | number, dimension: number, pos: IVector3, rot: IVector3): LocalPed
Parameters
Type |
Name |
Description |
string | number |
model |
|
number |
dimension |
|
IVector3 |
pos |
|
IVector3 |
rot |
|
|
Improve this Doc
View Source
LocalPed(string | number, number, IVector3, IVector3, true, number)
Declaration
public LocalPed(model: string | number, dimension: number, pos: IVector3, rot: IVector3, useStreaming: true, streamingDistance: number): LocalPed
Parameters
Type |
Name |
Description |
string | number |
model |
|
number |
dimension |
|
IVector3 |
pos |
|
IVector3 |
rot |
|
true |
useStreaming |
|
number |
streamingDistance |
|
Properties
|
Improve this Doc
View Source
model
Declaration
public get model(): number
public set model(model: string | number): void
Parameters
Type |
Name |
Description |
string | number |
model |
|
Property Value
|
Improve this Doc
View Source
rot
Declaration
Property Value
|
Improve this Doc
View Source
streamingDistance
Declaration
public readonly streamingDistance: number
Property Value
|
Improve this Doc
View Source
visible
Declaration
Property Value
|
Improve this Doc
View Source
scriptID
Declaration
public readonly scriptID: number
Property Value
|
Improve this Doc
View Source
isStreamedIn
Declaration
public readonly isStreamedIn: boolean
Property Value
Methods
|
Improve this Doc
View Source
getByID(number)
Declaration
public static getByID(id: number): null | LocalPed
Parameters
Type |
Name |
Description |
number |
id |
|
Returns
|
Improve this Doc
View Source
getByScriptID(number)
Declaration
public static getByScriptID(scriptID: number): null | LocalPed
Parameters
Type |
Name |
Description |
number |
scriptID |
|
Returns
|
Improve this Doc
View Source
waitForSpawn(number)
Declaration
public waitForSpawn(timeout?: number): Promise<void>
Parameters
Type |
Name |
Description |
number |
timeout |
|
Returns
Type |
Description |
Promise<void> |
|