Jump to content

New hud


Dre-+-

Recommended Posts

This script replace old GTA SA hud to new.

This resource can handle from Client side and Server side (like a original hud). For this must call showNewHudComponent(component,show) from Client side or showNewServerHudComponent([player],component,show) from Server side.

Component names:

"armour" - player armour level

"clock" - current in-game time

"health" - player health level

"money" - player money

"weapon" - current player weapon and ammo

"wanted" - current wanted level

"all" - armour,clock,health,money,weapon and wanted.

Show: "true",or "false".

For example: call(getResourceFromName("new_hud"),"showNewHudComponent","weapon" , "false")

If you want move this hud to top change: hudtopposition = 1 to hudtopposition = 0 in hud.lua

3290.png

3292.png

3291.png

3579.png

3596.png

Download:https://community.multitheftauto.com/index.php?p=resources&s=details&id=1627

BTW: If you found any bugs or you have suggestions post it in MTA Community or here.

Edited by Guest
Link to comment

Yeah that looks pretty cool!

Anyway, add some custom wanted stars.

Well, I don't like to see a number of minutes without an extra 0 at the front if number of minutes is less then 10 (like 2:5, when it's 2:05).

You should use this, a part of my alternate_hud script given by 50p. :)

time = hours .. ":" .. (((mins < 10) and "0"..mins) or mins) 

Anyway Dre, may I copy the function at line 146 on hud.lua and put it on my HUD? I was stuck when I was scripting about this, but you found the way out.

Link to comment
Yeah that looks pretty cool!

Anyway, add some custom wanted stars.

Well, I don't like to see a number of minutes without an extra 0 at the front if number of minutes is less then 10 (like 2:5, when it's 2:05).

You should use this, a part of my alternate_hud script given by 50p. :)

time = hours .. ":" .. (((mins < 10) and "0"..mins) or mins) 

Anyway Dre, may I copy the function at line 146 on hud.lua and put it on my HUD? I was stuck when I was scripting about this, but you found the way out.

Thanks for the advice, now clock changed. And about the function, i will be glad to be helpful)

Link to comment

I finally figured out how to:

- keep the total ammo until you reload

- Hide the custom HUD

All thanks to you Dre!

I would update my HUD with your credit. Thanks!

Our HUD resources are not rivals, but we share scripts to each other. Now that's a peaceful way! :)

Link to comment
I finally figured out how to:

- keep the total ammo until you reload

- Hide the custom HUD

All thanks to you Dre!

I would update my HUD with your credit. Thanks!

Our HUD resources are not rivals, but we share scripts to each other. Now that's a peaceful way! :)

I was glad to help)

Link to comment
  • 2 months later...
  • 2 months later...

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...