Skip to content

Colshape ​

@vimp-mp/types 2.0.1

Interface · Client API

Server-known colshape trigger volume. Colshapes do not expose a GTA entity handle.

ts
interface Colshape

Members ​

a ​

ts
readonly a: number

First raw geometry parameter supplied by the runtime.

b ​

ts
readonly b: number

Second raw geometry parameter supplied by the runtime.

c ​

ts
readonly c: number

Third raw geometry parameter supplied by the runtime.

d ​

ts
readonly d: number

Fourth raw geometry parameter supplied by the runtime.

dimension ​

ts
readonly dimension: number

Virtual world associated with the colshape.

handle ​

ts
readonly handle: 0

Always 0; colshapes are pure multiplayer/runtime state, not GTA entities.

height ​

ts
readonly height: number

Height for cylinder shapes.

id ​

ts
readonly id: number

Client-local 0-based wrapper id, unique per entity type and reused after destroy. Use remoteId for server/network state.

isAlive ​

ts
readonly isAlive: boolean

True while the remote colshape exists in multiplayer state.

isExists ​

ts
readonly isExists: boolean

Alias of isAlive for colshape lifecycle checks.

isRemote ​

ts
readonly isRemote: boolean

Whether this wrapper represents a server-owned colshape.

isStreamed ​

ts
readonly isStreamed: boolean

Whether a remote colshape is currently inside the streaming range.

key ​

ts
readonly key: string | undefined

Application key supplied at creation and retained outside the streaming radius.

kind ​

ts
readonly kind: number

Numeric runtime discriminant for the colshape geometry.

position ​

ts
readonly position: Vec3

Centre of the trigger volume in world coordinates.

radius ​

ts
readonly radius: number

Radius for sphere, circle and cylinder shapes.

remoteId ​

ts
readonly remoteId: number | null

Server colshape id for remote colshapes; null for local-only colshapes. Zero is a valid remote id.

size ​

ts
readonly size: Vec3

Full size vector for cuboid shapes.

type ​

ts
readonly type: ColshapeType

Stable string name for the colshape geometry.

destroy ​

ts
destroy(): boolean

Destroys local-only colshapes. Returns false for remote colshapes or already-destroyed wrappers.

VIMP developer documentation