{"hash":"0xC9884ECADE94CB34","ns":"GRAPHICS","name":"DRAW_SPRITE","slug":"DRAW_SPRITE","official":true,"named":true,"luaName":"DrawSprite","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"textureDict","type":"const char*"},{"name":"textureName","type":"const char*"},{"name":"screenX","type":"float"},{"name":"screenY","type":"float"},{"name":"width","type":"float"},{"name":"height","type":"float"},{"name":"heading","type":"float"},{"name":"red","type":"int"},{"name":"green","type":"int"},{"name":"blue","type":"int"},{"name":"alpha","type":"int"},{"name":"p11","type":"BOOL"}],"summary":"Draws a 2D sprite on the screen.","descriptions":[{"source":"alloc8or","format":"text","body":"Draws a 2D sprite on the screen.\n\nParameters:\ntextureDict - Name of texture dictionary to load texture from\n\ntextureName - Name of texture to load from texture dictionary\n\nscreenX/Y - Screen offset (0.5 = center)\nscaleX/Y - Texture scaling. Negative values can be used to flip the texture on that axis. (0.5 = half)\n\nheading - Texture rotation in degrees (default = 0.0) positive is clockwise, measured in degrees\n\nred,green,blue - Sprite color (default = 255/255/255)\n\nalpha - opacity level\n\nhttps://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/textures"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0xE7FFAE5EBF23D890","gtaJhash":"0x1FEC16B0","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/GRAPHICS/DRAW_SPRITE","markdownUrl":"https://natives.borderlinerp.com/natives/GRAPHICS/DRAW_SPRITE.md","snippets":{"lua":"DrawSprite(textureDict, textureName, screenX, screenY, width, height, heading, red, green, blue, alpha, p11)","luaInvoke":"Citizen.InvokeNative(0xC9884ECADE94CB34, textureDict, textureName, screenX, screenY, width, height, heading, red, green, blue, alpha, p11)","js":"DrawSprite(textureDict, textureName, screenX, screenY, width, height, heading, red, green, blue, alpha, p11);","jsInvoke":"Citizen.invokeNative('0xC9884ECADE94CB34', textureDict, textureName, screenX + 0.0000001, screenY + 0.0000001, width + 0.0000001, height + 0.0000001, heading + 0.0000001, red, green, blue, alpha, p11);","csharp":"Function.Call((Hash)0xC9884ECADE94CB34, textureDict, textureName, screenX, screenY, width, height, heading, red, green, blue, alpha, p11);","notes":["Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason."]}}