_DRAW_MARKER
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
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 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | type | Hash |
| 2 | posX | float |
| 3 | posY | float |
| 4 | posZ | float |
| 5 | dirX | float |
| 6 | dirY | float |
| 7 | dirZ | float |
| 8 | rotX | float |
| 9 | rotY | float |
| 10 | rotZ | float |
| 11 | scaleX | float |
| 12 | scaleY | float |
| 13 | scaleZ | float |
| 14 | red | int |
| 15 | green | int |
| 16 | blue | int |
| 17 | alpha | int |
| 18 | bobUpAndDown | BOOL |
| 19 | faceCamera | BOOL |
| 20 | p19 | int |
| 21 | rotate | BOOL |
| 22 | textureDict | const char* |
| 23 | textureName | const char* |
| 24 | drawOnEnts | BOOL |
Facts
| 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.
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
)// 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
);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
);Related GRAPHICS natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.