Dre-+- Posted February 26, 2011 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 Sorry for my bad english(
Xierra Posted February 26, 2011 Posted February 26, 2011 Impressive! Where did you get those weapon icons? XX3 is gone. This is my new name. :3
Dre-+- Posted February 26, 2011 Author 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. Sorry for my bad english(
Xierra Posted February 26, 2011 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. XX3 is gone. This is my new name. :3
Dre-+- Posted February 26, 2011 Author 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) Sorry for my bad english(
Xierra Posted February 27, 2011 Posted February 27, 2011 Dre, did you know, MTA SA 1.1 has new arguments for showPlayerHudComponent. You should add "wanted" to the list. XX3 is gone. This is my new name. :3
Dre-+- Posted February 27, 2011 Author 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) Sorry for my bad english(
Xierra Posted February 27, 2011 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. XX3 is gone. This is my new name. :3
MTA Team qaisjp Posted March 2, 2011 MTA Team 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.
Dre-+- Posted March 2, 2011 Author Posted March 2, 2011 UPDATED: If you have 0 armour, then health moved to top, and armour move to bottom) Sorry for my bad english(
Xierra Posted March 4, 2011 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! XX3 is gone. This is my new name. :3
Dre-+- Posted March 4, 2011 Author 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) Sorry for my bad english(
karlis Posted May 20, 2011 Posted May 20, 2011 can i use these icons? i might need them in resource i'll (possibly) make you will be credited ofc. [WIP]GTA IV style hud+custom blips + blip text + circular radar areas
Dre-+- Posted May 21, 2011 Author 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 Sorry for my bad english(
Aibo Posted May 21, 2011 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. ?
Dre-+- Posted May 21, 2011 Author 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 Sorry for my bad english(
karlis Posted May 21, 2011 Posted May 21, 2011 but still, you modified them.. [WIP]GTA IV style hud+custom blips + blip text + circular radar areas
Benevolence Posted August 13, 2011 Posted August 13, 2011 Think you can make it go on top of the screen not at the bottom? Can other people connect to your server? Use this tool to check: http://nightly.mtasa.com/ports/ Formerly known as Tank07.
Dre-+- Posted August 15, 2011 Author 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 Sorry for my bad english(
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