Gqmwrdpt# Posted October 26, 2012 Posted October 26, 2012 can anyone tell me how to change the HUD.txd to a script? L1 Scripter
Renkon Posted October 26, 2012 Posted October 26, 2012 I guess the best option would be to hide it with showPlayerHudComponent After that, you should draw the image with dxDrawImage
Gqmwrdpt# Posted October 26, 2012 Author Posted October 26, 2012 can you please explain more ? L1 Scripter
Renkon Posted October 26, 2012 Posted October 26, 2012 What you should do, is export your HUD to a .png file, or to many png files, and after that, draw them with dxDrawImage.
Anderl Posted October 26, 2012 Posted October 26, 2012 What you should do, is export your HUD to a .png file, or to many png files, and after that, draw them with dxDrawImage. Drawing just the pictures isn't a good idea at all. "[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007
Renkon Posted October 26, 2012 Posted October 26, 2012 What you should do, is export your HUD to a .png file, or to many png files, and after that, draw them with dxDrawImage. Drawing just the pictures isn't a good idea at all. What do you propose then..?
fmj02 Posted October 26, 2012 Posted October 26, 2012 first of all you need extract hud.txd textures into .png or similar format ( I mean weapons, or health bars ). http://img16.imageshack.us/img16/2108/weaponsx.png ( one weapon is comes in one image ) you can set weapon images names to ID's then just use dxDrawImage(x, y, x, y, "weapons/"..getPedWeapon(getLocalPlayer())..".png", 0.0, 0.0, 0.0, tocolor(255 , 255, 255, 255), false) ( put the weapons images into weapons folder ) To draw the ammo, money or time just use dxDrawText() , nowadays MTA supports custom fonts so you can draw text with every windows font by dxCreateFont() take this vice city stories hud from my server http://www3.zippyshare.com/v/54404084/file.html
Anderl Posted October 26, 2012 Posted October 26, 2012 What you should do, is export your HUD to a .png file, or to many png files, and after that, draw them with dxDrawImage. Drawing just the pictures isn't a good idea at all. What do you propose then..? Pictures aren't magic, you obviously will need a script that will control the HUD. You can't just tell him to draw the pictures and expect them to work as a HUD, magically "[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007
Gqmwrdpt# Posted October 27, 2012 Author Posted October 27, 2012 anyone have a tutorial about this? L1 Scripter
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now