DRAW_SPRITE
Draws a 2D sprite on the screen. Parameters: textureDict - Name of texture dictionary to load texture from textureName - Name of texture to load from texture dictionary screenX/Y - Screen offset (0.5 = center) scaleX/Y - Texture scaling. Negative values can be used to flip the texture on that axis. (0.5 = half) heading - Texture rotation in degrees (default = 0.0) positive is clockwise, measured in degrees red,green,blue - Sprite color (default = 255/255/255) alpha - opacity level https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/textures
GRAPHICSBuild 1207
Signature
lua
DrawSprite(textureDict, textureName, 0.0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, true)
-- returns voidParameters
| Name | Type | Description |
|---|---|---|
| const char* | — | |
| const char* | — | |
| float | — | |
| float | — | |
| float | — | |
| float | — | |
| float | — | |
| int | — | |
| int | — | |
| int | — | |
| int | — | |
| BOOL | — |
Usage
lua
DrawSprite(textureDict, textureName, 0.0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, true)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- Joaat hash
- Source
- VORPCORE/RDR3natives
Source: VORPCORE/RDR3natives
