Colshape
@vimp-mp/types 2.0.1Server-known colshape trigger volume. Colshapes do not expose a GTA entity handle.
interface ColshapeMembers
a
readonly a: numberFirst raw geometry parameter supplied by the runtime.
b
readonly b: numberSecond raw geometry parameter supplied by the runtime.
c
readonly c: numberThird raw geometry parameter supplied by the runtime.
d
readonly d: numberFourth raw geometry parameter supplied by the runtime.
dimension
readonly dimension: numberVirtual world associated with the colshape.
handle
readonly handle: 0Always 0; colshapes are pure multiplayer/runtime state, not GTA entities.
height
readonly height: numberHeight for cylinder shapes.
id
readonly id: numberClient-local 0-based wrapper id, unique per entity type and reused after destroy. Use remoteId for server/network state.
isAlive
readonly isAlive: booleanTrue while the remote colshape exists in multiplayer state.
isExists
readonly isExists: booleanAlias of isAlive for colshape lifecycle checks.
isRemote
readonly isRemote: booleanWhether this wrapper represents a server-owned colshape.
isStreamed
readonly isStreamed: booleanWhether a remote colshape is currently inside the streaming range.
key
readonly key: string | undefinedApplication key supplied at creation and retained outside the streaming radius.
kind
readonly kind: numberNumeric runtime discriminant for the colshape geometry.
position
readonly position: Vec3Centre of the trigger volume in world coordinates.
radius
readonly radius: numberRadius for sphere, circle and cylinder shapes.
remoteId
readonly remoteId: number | nullServer colshape id for remote colshapes; null for local-only colshapes. Zero is a valid remote id.
size
readonly size: Vec3Full size vector for cuboid shapes.
type
readonly type: ColshapeTypeStable string name for the colshape geometry.
destroy
destroy(): booleanDestroys local-only colshapes. Returns false for remote colshapes or already-destroyed wrappers.