Using Sprites - jorjic/fivem-docs GitHub Wiki

What are sprites?

https://en.wikipedia.org/wiki/Sprite_(computer_graphics)

How to use sprites

GTA V requires graphics to be cached before using them. If you only see a white box where your sprite should be, this is your issue. You can do this by invoking GRAPHICS::REQUEST_STREAMED_TEXTURE_DICT / 0xDFA2EF8E04127DD5. You must pass one positional argument, a string of the texture dictionary you are loading. Most sprites can be found in x64v.rpf/textures/script_txds.rpf. Example:

GRAPHICS::REQUEST_STREAMED_TEXTURE_DICT( "mplobby" );

After you've prepared the sprite you want to draw, invoke GRAPHICS::DRAW_SPRITE / 0xE7FFAE5EBF23D890 and pass the necessary arguments. Example:

GRAPHICS::DRAW_SPRITE( "mplobby", "mp_charcard_stats_icons9", 0.5f, 0.5f, 0.5f, 0.5f, 0.0f, 255, 255, 255, 255 );