The Lab
GRAPHICS native

DRAW_SPRITE

returns void12 paramsbuild 1207

Draws the texture textureName from textureDict on screen with the given position, size, heading and color for the current frame.

Request the dictionary with REQUEST_STREAMED_TEXTURE_DICT before drawing.

Signature

C
void DRAW_SPRITE(const char* textureDict, const char* textureName, float screenX, float screenY, float width, float height, float heading, int red, int green, int blue, int alpha, BOOL p11); // 0xC9884ECADE94CB34 b1207

Parameters

#NameType
1textureDictconst char*
2textureNameconst char*
3screenXfloat
4screenYfloat
5widthfloat
6heightfloat
7headingfloat
8redint
9greenint
10blueint
11alphaint
12p11BOOL

Facts

Facts about DRAW_SPRITE
Name
DRAW_SPRITE
Hash
0xC9884ECADE94CB34
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(0xC9884ECADE94CB34, -- DRAW_SPRITE
  "text", -- const char* textureDict
  "text", -- const char* textureName
  0.0, -- float screenX
  0.0, -- float screenY
  0.0, -- float width
  0.0, -- float height
  0.0, -- float heading
  0, -- int red
  0, -- int green
  0, -- int blue
  0, -- int alpha
  false -- BOOL p11
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xC9884ECADE94CB34", // DRAW_SPRITE
  "text", // const char* textureDict
  "text", // const char* textureName
  0.0, // float screenX
  0.0, // float screenY
  0.0, // float width
  0.0, // float height
  0.0, // float heading
  0, // int red
  0, // int green
  0, // int blue
  0, // int alpha
  false // BOOL p11
);
C#
Function.Call((Hash)0xC9884ECADE94CB34, // DRAW_SPRITE
  "text", // const char* textureDict
  "text", // const char* textureName
  0.0f, // float screenX
  0.0f, // float screenY
  0.0f, // float width
  0.0f, // float height
  0.0f, // float heading
  0, // int red
  0, // int green
  0, // int blue
  0, // int alpha
  false // BOOL p11
);
All GRAPHICS natives

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