IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Please post mod releases in the Mod Showroom

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 A question

 How to create a HUD ??
 
arijitsen  
Posted: Friday, Aug 31 2012, 12:23
Quote Post


It's show time
Group Icon
Group: Members
Joined: Jun 19, 2012

ia.gif

XXXXX



Hi guys I tried hard but could not figure it out how can I create a HUD by using CLEO or SCM coding ????
Anyhelp appreciated.. Shifty41s_beerhatsmilie2.gif lol.gif lol.gif lol.gif
Users WebsitePM
  Top
 

 
Michael-Knight1  
Posted: Friday, Aug 31 2012, 13:39
Quote Post


Never Give UP
Group Icon
Group: Members
Joined: Jul 8, 2012

gr.gif

XXXXX



first you must learn codding sneaky2.gif
http://www.gtaforums.com/index.php?showtopic=403594
then you can to do it only notify.gif
i'll give you simple hud script . it's just to show digital health.

CODE

0000: NOP

while true
wait 0
if
86B9:   not cutscene_data_loaded
  then
03F0: enable_text_draw 1
0226: $Health = actor $PLAYER_ACTOR health
033F: set_text_draw_letter_size 0.5 2.0
045A: draw_text_1number 575.0 110.0 GXT 'NUMBER' number $Health
end
   end


QUOTE

how can I create a HUD by using CLEO or SCM coding ????


EDIT : What is the difference between Scm & Cleo codding ! monocle.gif

This post has been edited by Michael-Knight1 on Friday, Aug 31 2012, 13:50
Users WebsitePM
  Top
 

 
oksa8  
Posted: Friday, Aug 31 2012, 14:23
Quote Post


Just call me Oksu
Group Icon
Group: Members
Joined: Sep 30, 2010

sf.gif

Member Award




QUOTE (Michael-Knight1 @ Friday, Aug 31 2012, 16:39)
QUOTE

how can I create a HUD by using CLEO or SCM coding ????


EDIT : What is the difference between Scm & Cleo codding ! monocle.gif

SCM-coding compared to CLEO has less opcodes, meaning also less possibilities.

And creating fully functional HUD isn't easy, just get all values you need (health, armor, money etc.) and display them like you want (as text or bar).
Users WebsitePM
  Top
 

 
Michael-Knight1  
Posted: Friday, Aug 31 2012, 15:13
Quote Post


Never Give UP
Group Icon
Group: Members
Joined: Jul 8, 2012

gr.gif

XXXXX



QUOTE (oksa8 @ Friday, Aug 31 2012, 14:23)
SCM-coding compared to CLEO has less opcodes, meaning also less possibilities.

lol...I know but just I am surprised Of what he meant ( scm or cleo codding ) .

P.S : artijini you can to use my codes with chenge actor health to armor and money if you want to make hud digital.

CODE

0000: NOP

while true
wait 0
if
86B9:   not cutscene_data_loaded
 then
03F0: enable_text_draw 1
0226: $Health = actor $PLAYER_ACTOR health
033F: set_text_draw_letter_size 0.5 2.0
045A: draw_text_1number 575.0 110.0 GXT 'NUMBER' number $Health
end
  end


This post has been edited by Michael-Knight1 on Friday, Aug 31 2012, 15:16
Users WebsitePM
  Top
 

 
arijitsen  
Posted: Friday, Aug 31 2012, 15:20
Quote Post


It's show time
Group Icon
Group: Members
Joined: Jun 19, 2012

ia.gif

XXXXX



@MK You didn't understood exactly what i mean Anyways there aint any useful info I have found regarding hud in the tuts.
I want to make health & armor bars not just digital values......

Anyways just have another doubt how can I find the position of the text draw supppose I want the armour bar to be shown in the right corner ??
My previous ques. hasn't been answered completely if anyone can give me a bit detailed info. I ll be grateful..
Anyways thanks for the help guys..
Users WebsitePM
  Top
 

 
fastman92  
Posted: Friday, Aug 31 2012, 16:49
Quote Post


фастман92 | ف
Group Icon
Group: Members
Joined: Jul 28, 2009

pl.gif

XXXXX



You need to calculate it all.
Here's info for you:

GTA SA Screen scale: 640.0 x 448.0
Users WebsitePMMSN
  Top
 

 
arijitsen  
Posted: Saturday, Sep 1 2012, 01:25
Quote Post


It's show time
Group Icon
Group: Members
Joined: Jun 19, 2012

ia.gif

XXXXX



Thanks all of you guys...
Users WebsitePM
  Top
 

 

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG