Jump to content

need help about modding hud.txd


Recommended Posts

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


, nowadays MTA supports custom fonts so you can draw text with every windows font by


take this vice city stories hud from my server :Phttp://www3.zippyshare.com/v/54404084/file.html

Link to comment
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 :P

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...