Options
All
  • Public
  • Public/Protected
  • All
Menu

A marker class whose instances do not need to be created in every tick.

example
// Creates marker at local player pos with default options
const defaultMarker = new alt.Utils.Marker(alt.Player.local.pos);

// Creates default marker at 0, 0, 72 with red color
const redMarker = new alt.Utils.Marker(new alt.Vector3(0, 0, 72), { color: alt.RGBA.red });

// Later you can change the color, scale, etc.
redMarker.scale = new alt.Vector3(3.0); // Makes marker bigger

Hierarchy

  • Marker

Index

Constructors

constructor

Properties

bobUpAndDown

bobUpAndDown: boolean

color

color: RGBA

dir

drawOnEnts

drawOnEnts: boolean

faceCamera

faceCamera: boolean

p19

p19: number

pos

rot

rotate

rotate: boolean

scale

scale: IVector3

textureDict

textureDict: string | undefined

textureName

textureName: string | undefined

type

type: number

Methods

destroy

  • destroy(): void
  • Returns void