Class Object
Inheritance
BaseObject
Object
Inherited Members
Entity.type
Entity.valid
Entity.id
Entity.destroy
Entity.getMetaDataKeys
Entity.refCount
Package: @altmp/altv-types
Syntax
class Object extends Entity
Constructors
|
Improve this Doc
View Source
Object(string | number, IVector3, IVector3, number, number, number, number)
Declaration
Object(model: string | number, position: IVector3, rotation: IVector3, alpha?: number, textureVariation?: number, lodDistance?: number, streamingDistance?: number): Object
Parameters
Type |
Name |
Description |
string | number |
model |
|
IVector3 |
position |
|
IVector3 |
rotation |
|
number |
alpha |
|
number |
textureVariation |
|
number |
lodDistance |
|
number |
streamingDistance |
|
Properties
|
Improve this Doc
View Source
all
Declaration
public readonly static all: readonly Object[]
Property Value
Type |
Description |
readonly Object[] |
|
|
Improve this Doc
View Source
count
Declaration
public readonly static count: number
Property Value
|
Improve this Doc
View Source
alpha
Declaration
Property Value
|
Improve this Doc
View Source
textureVariation
Declaration
public textureVariation: number
Property Value
|
Improve this Doc
View Source
lodDistance
Declaration
public lodDistance: number
Property Value
Methods
|
Improve this Doc
View Source
activatePhysics()
Declaration
public activatePhysics(): void
|
Improve this Doc
View Source
placeOnGroundProperly()
Declaration
public placeOnGroundProperly(): void
|
Improve this Doc
View Source
getByID(number)
Declaration
public static getByID(id: number): null | Object
Parameters
Type |
Name |
Description |
number |
id |
|
Returns
Type |
Description |
null | Object |
|