The Lab
GRAPHICS native

_DRAW_MARKER

returns void24 paramsbuild 1207

Draws a 3D marker of type at the given position for the current frame, with direction, rotation, scale, RGBA color and display options.

Call every frame; RedM marker types are hashes rather than the integer ids used in GTA V.

Signature

C
void _DRAW_MARKER(Hash 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, int p19, BOOL rotate, const char* textureDict, const char* textureName, BOOL drawOnEnts); // 0x2A32FAA57B937173 b1207

Parameters

#NameType
1typeHash
2posXfloat
3posYfloat
4posZfloat
5dirXfloat
6dirYfloat
7dirZfloat
8rotXfloat
9rotYfloat
10rotZfloat
11scaleXfloat
12scaleYfloat
13scaleZfloat
14redint
15greenint
16blueint
17alphaint
18bobUpAndDownBOOL
19faceCameraBOOL
20p19int
21rotateBOOL
22textureDictconst char*
23textureNameconst char*
24drawOnEntsBOOL

Facts

Facts about _DRAW_MARKER
Name
_DRAW_MARKER
Hash
0x2A32FAA57B937173
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x2A32FAA57B937173, -- _DRAW_MARKER
  GetHashKey("name"), -- Hash type
  0.0, -- float posX
  0.0, -- float posY
  0.0, -- float posZ
  0.0, -- float dirX
  0.0, -- float dirY
  0.0, -- float dirZ
  0.0, -- float rotX
  0.0, -- float rotY
  0.0, -- float rotZ
  0.0, -- float scaleX
  0.0, -- float scaleY
  0.0, -- float scaleZ
  0, -- int red
  0, -- int green
  0, -- int blue
  0, -- int alpha
  false, -- BOOL bobUpAndDown
  false, -- BOOL faceCamera
  0, -- int p19
  false, -- BOOL rotate
  "text", -- const char* textureDict
  "text", -- const char* textureName
  false -- BOOL drawOnEnts
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x2A32FAA57B937173", // _DRAW_MARKER
  GetHashKey("name"), // Hash type
  0.0, // float posX
  0.0, // float posY
  0.0, // float posZ
  0.0, // float dirX
  0.0, // float dirY
  0.0, // float dirZ
  0.0, // float rotX
  0.0, // float rotY
  0.0, // float rotZ
  0.0, // float scaleX
  0.0, // float scaleY
  0.0, // float scaleZ
  0, // int red
  0, // int green
  0, // int blue
  0, // int alpha
  false, // BOOL bobUpAndDown
  false, // BOOL faceCamera
  0, // int p19
  false, // BOOL rotate
  "text", // const char* textureDict
  "text", // const char* textureName
  false // BOOL drawOnEnts
);
C#
Function.Call((Hash)0x2A32FAA57B937173, // _DRAW_MARKER
  (uint)API.GetHashKey("name"), // Hash type
  0.0f, // float posX
  0.0f, // float posY
  0.0f, // float posZ
  0.0f, // float dirX
  0.0f, // float dirY
  0.0f, // float dirZ
  0.0f, // float rotX
  0.0f, // float rotY
  0.0f, // float rotZ
  0.0f, // float scaleX
  0.0f, // float scaleY
  0.0f, // float scaleZ
  0, // int red
  0, // int green
  0, // int blue
  0, // int alpha
  false, // BOOL bobUpAndDown
  false, // BOOL faceCamera
  0, // int p19
  false, // BOOL rotate
  "text", // const char* textureDict
  "text", // const char* textureName
  false // BOOL drawOnEnts
);
All GRAPHICS natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.