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

 [CLEO]small script request

 
lolleroz  
Posted: Thursday, Apr 5 2012, 18:45
Quote Post


Playa
Group Icon
Group: Members
Joined: Jul 29, 2010

pl.gif

XXXXX



I'm wondering if it's possible to script a 'text-draw' (w/e its called) which would look similar to this: (look at the HUD)
user posted image
thanks in advance...and my scripting knowledge restricts to common sense (changing keys and basic things in other's scripts, compiling n stuff) so if anyone has time to make a full-ready script...
PM
  Top
 

 
fastman92  
Posted: Thursday, Apr 5 2012, 18:56
Quote Post


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

pl.gif

XXXXX



Adler made it using Wesser's functions: http://gtag.gtagaming.com/forums/index.php...findpost&p=1376
See it:
QUOTE
Compiled .CS Script
Users WebsitePMMSN
  Top
 

 
lolleroz  
Posted: Thursday, Apr 5 2012, 20:39
Quote Post


Playa
Group Icon
Group: Members
Joined: Jul 29, 2010

pl.gif

XXXXX



Sorry if I sound arrogant but what does this have to do with the thingy I want? It seems to just show ped IDs, I'd just like simple text-draw on the HUD which I could fill out myself and it'd show up forever

I mean something like this:
user posted image

This post has been edited by lolleroz on Thursday, Apr 5 2012, 20:42
PM
  Top
 

 
Deji  
Posted: Thursday, Apr 5 2012, 21:59
Quote Post


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

ja.gif

XXXXX



Why would you wanna create something that looks like that? It's not very nice-looking.

Anyway, to answer your question "I'm wondering if it's possible...". Yes.
Users WebsitePM
  Top
 

 
lolleroz  
Posted: Friday, Apr 6 2012, 07:48
Quote Post


Playa
Group Icon
Group: Members
Joined: Jul 29, 2010

pl.gif

XXXXX



It was an example, I just want a small text input with nice font that I could fill out myself

Basically I'd like to have my mob name and my mob rank showed on the hud, for a pseudo-RP server. Similar to Godfather 1 the game, is it that bad? tounge.gif
PM
  Top
 

 
fastman92  
Posted: Friday, Apr 6 2012, 08:22
Quote Post


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

pl.gif

XXXXX



CODE
{$CLEO}
0000: NOP

   while true
   wait 0
   03F0: enable_text_draw 1    // required to clear currently drawn textures and texts from screen
   
   gosub @SetTextProperties    // thou shalt always set text properties before text draw!        
   033E: set_draw_text_position 320.0 240.0 GXT 'CRED008'
   end
   
:SetTextProperties
03E0: draw_text_behind_textures 1
033F: set_text_draw_letter_size 0.4 1.2
0343: set_text_draw_linewidth 640.0
03E3: set_texture_to_be_drawn_antialiased 0              
060D: draw_text_shadow 1 color_RGBA 0 0 0 255
return
Users WebsitePMMSN
  Top
 

 
lolleroz  
Posted: Friday, Apr 6 2012, 10:41
Quote Post


Playa
Group Icon
Group: Members
Joined: Jul 29, 2010

pl.gif

XXXXX



uh, any idea how can I get proper coordinates on the HUD? Also I have some trouble with FXT, I made a new one and did
CRED008 Rank: Veteran Mobster


but it seems to show 'Senior Programmer' while ingame, lol
PM
  Top
 

 
fastman92  
Posted: Friday, Apr 6 2012, 10:52
Quote Post


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

pl.gif

XXXXX



GTA SA PS2 scale: 640.0 x 448.0
It's whole screen.

Use MS Paint and resize screenshot to 640.0 x 448.0
Get the XY by moving cursor on image.

Remember the XY is used for top-right position of text.
Users WebsitePMMSN
  Top
 

 
SilentPL  
Posted: Friday, Apr 6 2012, 12:39
Quote Post


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

pl.gif

Member Award




FXT fails in samp, you need to edit the GXT.

Actually, it's interesting why it fails. I might take a look in it.
Users WebsitePMMSNXbox Live
  Top
 

 
lolleroz  
Posted: Saturday, Apr 7 2012, 09:27
Quote Post


Playa
Group Icon
Group: Members
Joined: Jul 29, 2010

pl.gif

XXXXX



Thanks Fastman, I'll look into it

So SilentPL, can I just find some random unused entry in gxt (lets say sh*t0001 for example), edit the text, and change the text entry in cleo script to sh*t0001 to get it to work?
PM
  Top
 

 
SilentPL  
Posted: Saturday, Apr 7 2012, 10:10
Quote Post


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

pl.gif

Member Award




You can even add a new one.
Users WebsitePMMSNXbox Live
  Top
 

 

0 User(s) are reading this topic (0 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