Log in to reply

Need help with showing image on screen with UI.DrawTexture()

  • Hello, I'm trying to make the UI.DrawTexture() work, but i can't find any proper documentation, could you please link me something, i tried to make it work with this topic on gta forums and also i researched some Microsoft documentation on the Point and Size properties, but it doesn't seem to work. I tried setting the position and size with this

    posImage = new Point(618, 330);
    Size sizeImage = new Size(1000, 1000);

    And inside onTick i tried loading it with

    UI.DrawTexture(texture, 100, 10, 100, posImage, sizeImage);

    (the texture is just

    String texture = AppDomain.CurrentDomain.BaseDirectory + "\\hud.png";

    ) But it doesn't show anything inside the game. Any help will be appreciated!

  • Looks about right. Try

    string texture = @"scripts/HUD.png"

  • I figured it out, thanks anyway! :heart:

Log in to reply

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.