Gqmwrdpt# Posted October 26, 2012 Share Posted October 26, 2012 can anyone tell me how to change the HUD.txd to a script? Link to comment
Renkon Posted October 26, 2012 Share 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 Link to comment
Gqmwrdpt# Posted October 26, 2012 Author Share Posted October 26, 2012 can you please explain more ? Link to comment
Renkon Posted October 26, 2012 Share 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. Link to comment
Anderl Posted October 26, 2012 Share Posted October 26, 2012 Renkon said: 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. Link to comment
Renkon Posted October 26, 2012 Share Posted October 26, 2012 Anderl said: Renkon said: 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..? Link to comment
fmj02 Posted October 26, 2012 Share 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 Link to comment
Anderl Posted October 26, 2012 Share Posted October 26, 2012 Renkon said: Anderl said: Renkon said: 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 Link to comment
Scripting Moderators Sarrum Posted October 27, 2012 Scripting Moderators Share Posted October 27, 2012 Use shaders? Link to comment
Gqmwrdpt# Posted October 27, 2012 Author Share Posted October 27, 2012 anyone have a tutorial about this? Link to comment
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