DRAW_SPRITE
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
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 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | textureDict | const char* |
| 2 | textureName | const char* |
| 3 | screenX | float |
| 4 | screenY | float |
| 5 | width | float |
| 6 | height | float |
| 7 | heading | float |
| 8 | red | int |
| 9 | green | int |
| 10 | blue | int |
| 11 | alpha | int |
| 12 | p11 | BOOL |
Facts
| 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.
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
)// 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
);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
);Related GRAPHICS natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.