Dre-+- Posted February 26, 2011 Share Posted February 26, 2011 (edited) 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 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 March 2, 2011 by Guest Link to comment
Xierra Posted February 26, 2011 Share Posted February 26, 2011 Impressive! Where did you get those weapon icons? Link to comment
Dre-+- Posted February 26, 2011 Author Share Posted February 26, 2011 Impressive!Where did you get those weapon icons? Most of icons from GTA 4, and the rest i create in Photoshop. Link to comment
Xierra Posted February 26, 2011 Share Posted February 26, 2011 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
Dre-+- Posted February 26, 2011 Author Share Posted February 26, 2011 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
Xierra Posted February 27, 2011 Share Posted February 27, 2011 Dre, did you know, MTA SA 1.1 has new arguments for showPlayerHudComponent. You should add "wanted" to the list. Link to comment
Dre-+- Posted February 27, 2011 Author Share Posted February 27, 2011 Dre, did you know, MTA SA 1.1 has new arguments for showPlayerHudComponent. You should add "wanted" to the list. Added) Link to comment
Xierra Posted February 27, 2011 Share Posted February 27, 2011 Wow! You did great! But don't forget, hiding wanted level is 1.1 onwards. Now you beaten my script. I should follow your scripting. Link to comment
qaisjp Posted March 2, 2011 Share Posted March 2, 2011 It would be a good idea to make the armor bar disappear and make the health bar move up when you have 0 armor. Link to comment
Dre-+- Posted March 2, 2011 Author Share Posted March 2, 2011 UPDATED: If you have 0 armour, then health moved to top, and armour move to bottom) Link to comment
Xierra Posted March 4, 2011 Share Posted March 4, 2011 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
Dre-+- Posted March 4, 2011 Author Share Posted March 4, 2011 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
karlis Posted May 20, 2011 Share Posted May 20, 2011 can i use these icons? i might need them in resource i'll (possibly) make you will be credited ofc. Link to comment
Dre-+- Posted May 21, 2011 Author Share Posted May 21, 2011 can i use these icons?i might need them in resource i'll (possibly) make you will be credited ofc. Ok Link to comment
Aibo Posted May 21, 2011 Share Posted May 21, 2011 can i use these icons?i might need them in resource i'll (possibly) make you will be credited ofc. he didn't make the icons. Link to comment
Dre-+- Posted May 21, 2011 Author Share Posted May 21, 2011 can i use these icons?i might need them in resource i'll (possibly) make you will be credited ofc. he didn't make the icons. Yeah, it's modified icons from GTA 4 Link to comment
Benevolence Posted August 13, 2011 Share Posted August 13, 2011 Think you can make it go on top of the screen not at the bottom? Link to comment
Dre-+- Posted August 15, 2011 Author Share Posted August 15, 2011 Think you can make it go on top of the screen not at the bottom? If you want move this hud to top change: hudtopposition = 1 to hudtopposition = 0 in hud.lua 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