Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

Happy Holidays from the GTANet team!

[Help]Screen Text


Lahiru_samp
 Share

Recommended Posts

Lahiru_samp

How can i make any screen text ?(code)

like this

im new

Game-text-type0.jpg

 

 

i did like this

  00BA: show_text_styled GXT 'FEM_OK' time 1000 style 1   

but i can't add any text , only GXT texts :/

Edited by Lahiru_samp
Link to comment
Share on other sites

Easy but make sure you read about data types in Sanny builder, this about very basic text string.

 

then by latest Cleo that had implant 0ADF. Create your custom text:

0ADF: add_dynamic_GXT_entry '_TEST' your_text "Hello World!"

Test the new gxt with the it's custom title

example now: '_TEST'

00BA: show_text_styled GXT '_TEST' time 1000 style 1   

To Remove GXT use 0AE0:

0AE0: remove_dynamic_GXT_entry '_TEST'

Other similliar about GXT or show text. Can by direct create .FXT file in “GTA San Andreas\CLEO\cleo_text” folder.

See at ZAZ or Rapier post:

 

CLEO Script Tutorial ~ZAZ

Custom Text Box ~Rapier

 

Have fun!

Link to comment
Share on other sites

Lahiru_samp

Thanks X-Falcon and zaz , it worked!

 

 

for cleo script? do you have cleo installed?
or only main.scm coding without cleo installed?

Yes cleo

Edited by Lahiru_samp
Link to comment
Share on other sites

Lahiru_samp

can you also tell about making screen text in san andreas multiplayer ,

worked in single player

wasn't worked in samp :\

Edited by Lahiru_samp
Link to comment
Share on other sites

X-Falcon showed methods to create dynamic gxt (requires cleo4)

 

He also gave link to the lesson about create fxt, hmm... ok.. better click this link: Create a FXT file (works for cleo 3 and 4)

 

Cleo makes possible to use a custom file to store text for using ingame

its called fake XT, according to the gxt file of the game

 

Cleo_text folder must be a sub folder of Cleo folder

The fxt file must be placed in Cleo_text folder

- Cleo\Cleo_text: text.fxt

 

The fxt file will be read by game start.

If you have modified your fxt file it needs first to close the game complete

and then start again to apply the changes.

 

To create a fxt file needs to insert an entry name for the script and the real text to show, in a normal txt file

Then rename the file by chaning the extension from .txt into .fxt

Or create it directly with Sannybuilder and save it as .fxt , choose Any file (*.*) as extension

 

Entry name for the script and the real text to show must be done in this way:

 

only 1 space between Entryname and text message

Important:

only 1 space between words of the text message are allowed and NO space at the end

Maximum 7 symbols as entry name are allowed

 

Exemble:

Copy this line into a blanc page and save it as anyname.fxt

 

 

TXT_01 This is text of Cleo fxt file
Then use the script below to show the text by key_press

 

{$CLEO .cs}:FXT03A4: name_thread 'FXT':FXT_010001: wait 0 msif0AB0: key_pressed 84//--------- key = T004D: jump_if_false @FXT_0100BA: text_styled 'TXT_01' 1000 ms 10A93: end_custom_thread
The opcodes to show text are the same like to show text of american.gxt

There exist several opcodes to show text in different kinds. Look in opcode search tool.

Or look in Dutchys coding tut

 

If you wonna use entry names of american.gxt to use its text messages,

so look for a complete translation txt file in Sanny Install directory:

Sanny Builder 3\help\GXT Strings\GTASA.text

 

 

 

If you have cleo 3,

it requires to install the GxtHook.cleo in Cleo folder and an extra folder for the fxt files

 

many users made it wrong, so again the explanation:

GxtHook.cleo must be placed in Cleo folder, not in a sub folder

Cleo_text folder must be a sub folder of Cleo folder

The fxt file must be placed in Cleo_text folder

 

GTASA game dir

- Cleo:GxtHook.cleo

- Cleo\Cleo_text: text.fxt

 

 

can you also tell about making screen text in san andreas multiplayer ,

worked in single player

wasn't worked in samp :\

Cleo wasn't developed to work in multiplayer mode, but some people made cleo extensions for sa-mp, therefor you have to go here Edited by ZAZ
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.