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);
onTicki 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!