Class Colshape
Inheritance
BaseObject
Colshape
Inherited Members
WorldObject.deleteSyncedMeta
WorldObject.setSyncedMeta
WorldObject.constructor
WorldObject.type
WorldObject.valid
WorldObject.id
WorldObject.destroy
WorldObject.getMetaDataKeys
WorldObject.getSyncedMeta
WorldObject.hasSyncedMeta
WorldObject.getSyncedMetaKeys
WorldObject.refCount
Package: @altmp/altv-types
Syntax
class Colshape extends WorldObject
Properties
|
Improve this Doc
View Source
all
Declaration
public readonly static all: readonly Colshape[]
Property Value
|
Improve this Doc
View Source
colshapeType
Declaration
public readonly colshapeType: ColShapeType
Property Value
|
Improve this Doc
View Source
playersOnly
Declaration
public playersOnly: boolean
Property Value
|
Improve this Doc
View Source
radius
Declaration
public readonly radius: number
Property Value
|
Improve this Doc
View Source
height
Declaration
public readonly height: number
Property Value
|
Improve this Doc
View Source
min
Declaration
public readonly min: Vector3 | Vector2
Property Value
|
Improve this Doc
View Source
max
Declaration
public readonly max: Vector3 | Vector2
Property Value
|
Improve this Doc
View Source
minZ
Declaration
public readonly minZ: number
Property Value
|
Improve this Doc
View Source
maxZ
Declaration
public readonly maxZ: number
Property Value
|
Improve this Doc
View Source
points
Declaration
public readonly points: readonly Vector2[]
Property Value
Type |
Description |
readonly Vector2[] |
|
Methods
|
Improve this Doc
View Source
getByID(number)
Declaration
public static getByID(id: number): null | Colshape
Parameters
Type |
Name |
Description |
number |
id |
|
Returns
|
Improve this Doc
View Source
isEntityIn(Entity)
Declaration
public isEntityIn(entity: Entity): boolean
Parameters
Type |
Name |
Description |
Entity |
entity |
|
Returns
|
Improve this Doc
View Source
isEntityIn(number)
Declaration
public isEntityIn(entityID: number): boolean
Parameters
Type |
Name |
Description |
number |
entityID |
|
Returns
|
Improve this Doc
View Source
isPointIn(IVector3)
Declaration
public isPointIn(position: IVector3): boolean
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public deleteMeta(key: string): void
Parameters
Type |
Name |
Description |
string |
key |
|
|
Improve this Doc
View Source
Declaration
public deleteMeta<K extends never>(key: K): void
Parameters
Type |
Name |
Description |
K |
key |
|
|
Improve this Doc
View Source
Declaration
public hasMeta(key: string): boolean
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
|
Improve this Doc
View Source
Declaration
public hasMeta<K extends never>(key: K): boolean
Parameters
Type |
Name |
Description |
K |
key |
|
Returns
|
Improve this Doc
View Source
Declaration
public getMeta<K extends string>(key: Exclude<K, never>): unknown
Parameters
Type |
Name |
Description |
Exclude<K, never> |
key |
|
Returns
|
Improve this Doc
View Source
Declaration
public getMeta<K extends never>(key: K): undefined | ICustomColshapeMeta[K]
Parameters
Type |
Name |
Description |
K |
key |
|
Returns
|
Improve this Doc
View Source
Declaration
public getMeta<V extends unknown>(key: string): undefined | V
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
Type |
Description |
undefined | V |
|
|
Improve this Doc
View Source
Declaration
public setMeta<K extends string>(key: K, value: InterfaceValueByKey<ICustomColshapeMeta, K, unknown, void>): void
Parameters
|
Improve this Doc
View Source
Declaration
public setMeta<K extends never>(key: K, value: ICustomColshapeMeta[K]): void
Parameters
|
Improve this Doc
View Source
Declaration
public setMeta<V extends unknown, K extends string>(key: K, value: InterfaceValueByKey<ICustomColshapeMeta, K, V, void>): void
Parameters
|
Improve this Doc
View Source
Declaration
public setMeta(values: MetaValues<ICustomColshapeMeta>): void
Parameters