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)


Pages: (3) [1] 2 3   ( Go to first unread post ) Closed TopicStart new topicStart Poll

 Text Around Radar Ring

 
casshem  
Posted: Friday, Feb 3 2012, 01:17
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jul 31, 2010

XXXXX



Hello there; I'm new to coding and would like to know how you would go about coding the text around your radar like in this picture:
user posted image

Thank you very much for helping me out.

This post has been edited by casshem on Friday, Feb 3 2012, 01:20
PM
  Top
 

 
Deji  
Posted: Friday, Feb 3 2012, 13:09
Quote Post


Coding like a Rockstar!
Group Icon
Group: Members
Joined: Dec 24, 2007

ja.gif

XXXXX



Step 1: Learn how to draw text.
Step 2: Oh.. there is no step 2...
Users WebsitePM
  Top
 

 
casshem  
Posted: Friday, Feb 3 2012, 16:14
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jul 31, 2010

XXXXX



And how would I learn to read the memory for the information pertaining to my character?
PM
  Top
 

 
Deji  
Posted: Friday, Feb 3 2012, 16:21
Quote Post


Coding like a Rockstar!
Group Icon
Group: Members
Joined: Dec 24, 2007

ja.gif

XXXXX



So you don't need help drawing the text, you need help getting the information to draw? Shoulda started with that... What are you coding in? Have you already started the code? If so, please post it.
Users WebsitePM
  Top
 

 
casshem  
Posted: Friday, Feb 3 2012, 16:30
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jul 31, 2010

XXXXX



I'm trying to learn cleo to do this, but all the tutorials I've been sifting through don't deal with displaying character information.
PM
  Top
 

 
Frank.s  
Posted: Friday, Feb 3 2012, 16:30
Quote Post


IV Scripter, Modeler.
Group Icon
Group: Members
Joined: Apr 15, 2008

en.gif

Member Award




Edit: Didn't see your last post before.
What info do you want to get via coding about the player?

This post has been edited by Frank.s on Friday, Feb 3 2012, 16:37
PM
  Top
 

 
casshem  
Posted: Friday, Feb 3 2012, 16:39
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jul 31, 2010

XXXXX



I want to read and draw text information of the player's zone, money, health and armor. I'd like to also get the 'world' time as well. Pretty much everything that I posted in that picture.
PM
  Top
 

 
Frank.s  
Posted: Friday, Feb 3 2012, 16:57
Quote Post


IV Scripter, Modeler.
Group Icon
Group: Members
Joined: Apr 15, 2008

en.gif

Member Award




Ah ok, you'll probably like Sanny Builders Opcode Search Tool (ctrl + alt + 2) icon14.gif

QUOTE (casshem)
I want to read and draw text information of the player's zone
You can get the zone names from the info.zon
CODE
0154:   actor $PLAYER_ACTOR in_zone 'EASB'  // Easter Basin
QUOTE
money
CODE
010B: 4@ = player $PLAYER_CHAR money
QUOTE
health
CODE
0226: $6459 = actor 164@ health
QUOTE
armor
CODE
04DD: $9594 = actor $PLAYER_ACTOR armour
QUOTE
I'd like to also get the 'world' time as well
CODE
00BF: $TIME_HOURS = current_time_hours, $TIME_MINS = current_time_minutes


This post has been edited by Frank.s on Friday, Feb 3 2012, 17:01
PM
  Top
 

 
casshem  
Posted: Friday, Feb 3 2012, 16:59
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jul 31, 2010

XXXXX



Wow, thanks! I'm going to try and get started on the code and see how it goes.
PM
  Top
 

 
Frank.s  
Posted: Friday, Feb 3 2012, 17:02
Quote Post


IV Scripter, Modeler.
Group Icon
Group: Members
Joined: Apr 15, 2008

en.gif

Member Award




Glad to help. icon14.gif
The first one is a "conditional check" so it's layed out like this:
CODE
:ThreadLabel_100
0001: wait 0 ms
00D6: if
0154:   actor $PLAYER_ACTOR in_zone 'EASB'  // Easter Basin
004D: jump_if_false @ThreadLabel_100
//Do something here.
PM
  Top
 

 
Ify24  
Posted: Friday, Feb 3 2012, 19:24
Quote Post


0x00000000 --> invisible
Group Icon
Group: Members
Joined: Aug 17, 2011

yu.gif

XXXXX



Ok, and now how to draw it ?
PM
  Top
 

 
Deji  
Posted: Friday, Feb 3 2012, 19:27
Quote Post


Coding like a Rockstar!
Group Icon
Group: Members
Joined: Dec 24, 2007

ja.gif

XXXXX



QUOTE (Ify24 @ Friday, Feb 3 2012, 19:24)
Ok, and now how to draw it ?

This is not your topic. moto_whistle.gif
Users WebsitePM
  Top
 

 
Ify24  
Posted: Friday, Feb 3 2012, 19:35
Quote Post


0x00000000 --> invisible
Group Icon
Group: Members
Joined: Aug 17, 2011

yu.gif

XXXXX



QUOTE (Deji @ Friday, Feb 3 2012, 19:27)
QUOTE (Ify24 @ Friday, Feb 3 2012, 19:24)
Ok, and now how to draw it ?

This is not your topic. moto_whistle.gif

So ? Do I need to open new topic for a same question ?
I am just asking... moto_whistle.gif
PM
  Top
 

 
Link2012  
Posted: Friday, Feb 3 2012, 19:47
Quote Post


Wut?
Group Icon
Group: Members
Joined: Jan 30, 2011

ba.gif

XXXXX



CODE
033E: set_draw_text_position 320.0 180.333 GXT 'BJ_PUSH'  // Push
045A: draw_text_1number 320.0 155.333 GXT 'ALLRACE' number 0@  // ALL RACES WON!~n~~w~$~1~
045B: draw_text_2numbers 320.0 390.0 GXT 'TIME' numbers $TIME_MINS $6228  // ~1~:~1~


PMMSN
  Top
 

 
Ify24  
Posted: Friday, Feb 3 2012, 20:09
Quote Post


0x00000000 --> invisible
Group Icon
Group: Members
Joined: Aug 17, 2011

yu.gif

XXXXX



QUOTE (Link2012 @ Friday, Feb 3 2012, 19:47)
CODE
033E: set_draw_text_position 320.0 180.333 GXT 'BJ_PUSH'  // Push
045A: draw_text_1number 320.0 155.333 GXT 'ALLRACE' number 0@  // ALL RACES WON!~n~~w~$~1~
045B: draw_text_2numbers 320.0 390.0 GXT 'TIME' numbers $TIME_MINS $6228  // ~1~:~1~

Yeah, whit these opcodes you draw text... but how to draw player health ?
PM
  Top
 

 
Link2012  
Posted: Friday, Feb 3 2012, 20:18
Quote Post


Wut?
Group Icon
Group: Members
Joined: Jan 30, 2011

ba.gif

XXXXX



QUOTE (Ify24 @ Friday, Feb 3 2012, 17:09)
QUOTE (Link2012 @ Friday, Feb 3 2012, 19:47)
CODE
033E: set_draw_text_position 320.0 180.333 GXT 'BJ_PUSH'  // Push
045A: draw_text_1number 320.0 155.333 GXT 'ALLRACE' number 0@  // ALL RACES WON!~n~~w~$~1~
045B: draw_text_2numbers 320.0 390.0 GXT 'TIME' numbers $TIME_MINS $6228  // ~1~:~1~

Yeah, whit these opcodes you draw text... but how to draw player health ?

CODE
0226: 0@ = actor $PLAYER_ACTOR health
045A: draw_text_1number 95.0 375.0 GXT 'NUMBER' number 0@  // 'NUMBER' GXT Entry is "~1~". So in GXT Text '~1~' means NUMBER
PMMSN
  Top
 

 
Ify24  
Posted: Friday, Feb 3 2012, 20:30
Quote Post


0x00000000 --> invisible
Group Icon
Group: Members
Joined: Aug 17, 2011

yu.gif

XXXXX



QUOTE (Link2012 @ Friday, Feb 3 2012, 20:18)
QUOTE (Ify24 @ Friday, Feb 3 2012, 17:09)
QUOTE (Link2012 @ Friday, Feb 3 2012, 19:47)
CODE
033E: set_draw_text_position 320.0 180.333 GXT 'BJ_PUSH'  // Push
045A: draw_text_1number 320.0 155.333 GXT 'ALLRACE' number 0@  // ALL RACES WON!~n~~w~$~1~
045B: draw_text_2numbers 320.0 390.0 GXT 'TIME' numbers $TIME_MINS $6228  // ~1~:~1~

Yeah, whit these opcodes you draw text... but how to draw player health ?

CODE
0226: 0@ = actor $PLAYER_ACTOR health
045A: draw_text_1number 95.0 375.0 GXT 'NUMBER' number 0@  // 'NUMBER' GXT Entry is "~1~". So in GXT Text '~1~' means NUMBER

Thanks, but it draws 149 and when I loss health its stil 149...
PM
  Top
 

 
SilentPL  
Posted: Friday, Feb 3 2012, 20:41
Quote Post


Senior File Manager
Group Icon
Group: Members
Joined: Feb 1, 2010

pl.gif

Member Award




Thought about looping it?
Users WebsitePMMSNXbox Live
  Top
 

 
casshem  
Posted: Saturday, Feb 4 2012, 14:26
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jul 31, 2010

XXXXX



Did you figure out how to get it to update?
PM
  Top
 

 
Ify24  
Posted: Saturday, Feb 4 2012, 14:41
Quote Post


0x00000000 --> invisible
Group Icon
Group: Members
Joined: Aug 17, 2011

yu.gif

XXXXX



Yes.
Whit looping.
PM
  Top
 

 

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

0 Members:

Pages: (3) [1] 2 3 

Topic Options Closed TopicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG