GraphicsClientChecked by LS:MP

drawMarkerEx

DRAW_MARKER_EX0xE82728F0DE75D13A

The GTA V native DRAW_MARKER_EX of the GRAPHICS namespace, as LS:MP client scripts call it: the global function drawMarkerEx, in JavaScript and in Lua.

SignatureJavaScript
drawMarkerEx(
  type: number,
  posX: number,
  posY: number,
  posZ: number,
  dirX: number,
  dirY: number,
  dirZ: number,
  rotX: number,
  rotY: number,
  rotZ: number,
  scaleX: number,
  scaleY: number,
  scaleZ: number,
  red: number,
  green: number,
  blue: number,
  alpha: number,
  bobUpAndDown: boolean,
  faceCamera: boolean,
  p19: any,
  rotate: boolean,
  textureDict: string,
  textureName: string,
  drawOnEnts: boolean,
  p24: boolean,
  p25: boolean
): void
SignatureLua
drawMarkerEx(
  type: integer,
  posX: number,
  posY: number,
  posZ: number,
  dirX: number,
  dirY: number,
  dirZ: number,
  rotX: number,
  rotY: number,
  rotZ: number,
  scaleX: number,
  scaleY: number,
  scaleZ: number,
  red: integer,
  green: integer,
  blue: integer,
  alpha: integer,
  bobUpAndDown: boolean,
  faceCamera: boolean,
  p19: any,
  rotate: boolean,
  textureDict: string,
  textureName: string,
  drawOnEnts: boolean,
  p24: boolean,
  p25: boolean
)

Usage

JavaScript
drawMarkerEx(
  type, posX, posY, posZ, dirX, dirY, dirZ, rotX, rotY, rotZ, scaleX, scaleY, scaleZ, red,
  green, blue, alpha, bobUpAndDown, faceCamera, p19, rotate, textureDict, textureName,
  drawOnEnts, p24, p25
);
Lua
drawMarkerEx(
    type, posX, posY, posZ, dirX, dirY, dirZ, rotX, rotY, rotZ, scaleX, scaleY, scaleZ, red,
    green, blue, alpha, bobUpAndDown, faceCamera, p19, rotate, textureDict, textureName,
    drawOnEnts, p24, p25
)

Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.

JavaScript · with vectors
drawMarkerEx(
  type, pos, dir, rot, scale, red, green, blue, alpha, bobUpAndDown, faceCamera, p19, rotate,
  textureDict, textureName, drawOnEnts, p24, p25
);
Lua · with vectors
drawMarkerEx(
    type, pos, dir, rot, scale, red, green, blue, alpha, bobUpAndDown, faceCamera, p19, rotate,
    textureDict, textureName, drawOnEnts, p24, p25
)

Parameters

ParameterTypeJavaScriptLua
typeintnumberinteger
posXfloatnumbernumber
posYfloatnumbernumber
posZfloatnumbernumber
dirXfloatnumbernumber
dirYfloatnumbernumber
dirZfloatnumbernumber
rotXfloatnumbernumber
rotYfloatnumbernumber
rotZfloatnumbernumber
scaleXfloatnumbernumber
scaleYfloatnumbernumber
scaleZfloatnumbernumber
redintnumberinteger
greenintnumberinteger
blueintnumberinteger
alphaintnumberinteger
bobUpAndDownBOOLbooleanboolean
faceCameraBOOLbooleanboolean
p19Anyanyany
rotateBOOLbooleanboolean
textureDictstringstringstring
textureNamestringstringstring
drawOnEntsBOOLbooleanboolean
p24BOOLbooleanboolean
p25BOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

On LS:MP

ℹ
Checked by LS:MP

type must be between 0 and 44; posX, posY, posZ, dirX, dirY, dirZ, rotX, rotY, rotZ, scaleX, scaleY, scaleZ must be finite numbers. Otherwise the call is ignored: nothing reaches the game, and no error is raised. A texture pair the game has not loaded, or empty strings, does not refuse the call: the marker is drawn without a texture.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Reference

Namespace
Graphics GRAPHICS
In the game
void DRAW_MARKER_EX(int type, float posX, float posY, float posZ, float dirX, float dirY, float dirZ, float rotX, float rotY, float rotZ, float scaleX, float scaleY, float scaleZ, int red, int green, int blue, int alpha, BOOL bobUpAndDown, BOOL faceCamera, Any p19, BOOL rotate, const char* textureDict, const char* textureName, BOOL drawOnEnts, BOOL p24, BOOL p25)
Hash
0xE82728F0DE75D13A
Introduced
Game build 573 legacy numbering
Formerly
_DRAW_MARKER_2

Open in the interactive natives reference