Avi5006 Posted May 13, 2019 Share Posted May 13, 2019 (edited) so I made an LSC and wanted an icon to appear when I pick a mod it only appears for a sec and goes away if (Menu::Option(mod)) { VEHICLE::SET_VEHICLE_MOD_KIT(veh, 0); VEHICLE::SET_VEHICLE_MOD(veh, 7, i, 1); GRAPHICS::REQUEST_STREAMED_TEXTURE_DICT("commonmenu", true); GRAPHICS::HAS_STREAMED_TEXTURE_DICT_LOADED("commonmenu"); GRAPHICS::DRAW_SPRITE("commonmenu", "Shop_Garage_Icon_B", Menu::Settings::menuX + 0.078f, (Menu::Settings::optionCount * 0.035f + 0.141f), 0.02f, 0.03f, 0, 0, 255, 0, 255); } Edited May 13, 2019 by Avi5006 Link to comment Share on other sites More sharing options...
Jitnaught Posted May 14, 2019 Share Posted May 14, 2019 DRAW_SPRITE needs to be called every frame. Link to comment Share on other sites More sharing options...
Avi5006 Posted May 14, 2019 Author Share Posted May 14, 2019 10 hours ago, Jitnaught said: DRAW_SPRITE needs to be called every frame. how would i call it in every frame? Link to comment Share on other sites More sharing options...
Jitnaught Posted May 14, 2019 Share Posted May 14, 2019 Put something like this somewhere in your while loop... if (drawLSCSprite) { if (!GRAPHICS::HAS_STREAMED_TEXTURE_DICT_LOADED("commonmenu")) { GRAPHICS::REQUEST_STREAMED_TEXTURE_DICT("commonmenu", true); } GRAPHICS::DRAW_SPRITE("commonmenu", "Shop_Garage_Icon_B", Menu::Settings::menuX + 0.078f, (Menu::Settings::optionCount * 0.035f + 0.141f), 0.02f, 0.03f, 0, 0, 255, 0, 255); } The drawLSCSprite variable is a boolean that would have to be added, and would have to be set to true/false when you press that menu option. Link to comment Share on other sites More sharing options...