Skip to content

Basic Messages

Help Boxes

In the base game, text commands require a GXT key - an 8-character string referencing one of the predefined text entries in the active GXT file (for example, american.gxt when the game language is set to English).

For example, to display a help box with the text ‘San Andreas’, you need to use the command PRINT_HELP with the key 'SAN_AND':

PRINT_HELP {key} 'SAN_AND'
Help box example

Sometimes you need custom text that doesn’t exist in the original GXT files. There are two easy ways to do this:

  1. CLEO supports custom text dictionary format called FXT, which allows you to define new keys and messages without having to edit GXT files. FXT files are loaded automatically from the CLEO_TEXT folder.

Each FXT file contains a list of plain text entries in the following format:

<KEY> <TEXT>
  1. Use CLEO commands that accept strings directly, without using a GXT key. For example, to display the same help box use:
PRINT_HELP_STRING {text} "San Andreas"

Notice that because the text is longer than 8 characters, you need to use double quotes.

Mission Text

Here is some other message commands and their CLEO counterpart:

PRINT_NOW

Native CommandCLEO Command
PRINT_NOW {key} 'SAN_AND' {duration} 3000 {style} 1PRINT_STRING_NOW {text} "San Andreas" {duration} 3000
PRINT_NOW Example

PRINT_BIG

Native CommandCLEO Command
PRINT_BIG {key} 'SAN_AND' {duration} 3000 {style} 1PRINT_BIG_STRING {text} "San Andreas" {duration} 3000 {style} 1
PRINT_BIG Example

To find more information about each command and different styles, visit the Text class in Sanny Builder Library.