GTA: Modification Area

A website for the GTA modding scene


Display results as :

Rechercher Advanced Search

Latest topics
» Big-game starts raising Schneider's profile
GXT file(GTA: 4) EmptySun Mar 04, 2012 2:28 am by lavivi

» [Help] cleo created lighting
GXT file(GTA: 4) EmptyThu Oct 14, 2010 1:03 am by findmy012

» Mission Question
GXT file(GTA: 4) EmptyThu Oct 14, 2010 1:02 am by findmy012

» [IV] Spoiler Script
GXT file(GTA: 4) EmptyThu Oct 14, 2010 1:02 am by findmy012

» Mission mod [help]
GXT file(GTA: 4) EmptySat Sep 18, 2010 5:50 pm by jayd00

» Bc7 Mod Help
GXT file(GTA: 4) EmptyFri Aug 20, 2010 11:19 am by pengpeng

» Found a bug
GXT file(GTA: 4) EmptyFri Dec 18, 2009 4:22 am by _CJ360_

» [IV] Novitec Rosso 599 GTB
GXT file(GTA: 4) EmptyTue Nov 17, 2009 4:22 pm by Kotton

» Hello/Guidance Request
GXT file(GTA: 4) EmptyMon Oct 12, 2009 6:45 am by Adler














----- Русский -----

Если ваш сайт содержит большую коллекцию SCM/CLEO-скриптов (больше 16), напишите на мой e-mail, и я добавлю его в список. Приветствуются скрипты, которые не встречаются на других сайтах ... Спасибо. ))))

----- English -----

If your website has a big enough collection of SCM/CLEO scripts (more than 16) notify me by e-mail
, and I will add it to the list. The unique scripts are preferable ... Thank you. ))))
Log in

I forgot my password

August 2019

Calendar Calendar

You are not connected. Please login or register

GXT file(GTA: 4)

Go down  Message [Page 1 of 1]

1GXT file(GTA: 4) Empty GXT file(GTA: 4) on Wed Feb 25, 2009 1:26 am

The .gxt file(s) contain almost every text within the game, there are 5 files with this format, American.gxt, German.gxt, Spanish.gxt, Italian.gxt, and French.gxt. The GXT file contains almost every text which is displayed in the game, from GTA 2, all the way to GTA 4.

Each GXT file can contain certain tables with sub-tables and entries. The entries are stored in ASCII standard. Just some special characters got some different bit-sets.


The header of GTA 4 GXT is the same as in San Andreas:

The header contains data about the tables and their sub-tables.


INT32  - 4b  - Version? (Always 0x080004)
CHAR[4] - 4b  - TABL

Table Block

The Table Block contains data about the sub-tables and their offsets.


INT32  - 4b  - Blocksize

//Array of [Blocksize / 12 Entries]
CHAR[8] - 8b  - Subtablename
INT32  - 4b  - Offset

The Offset of the sub-table points to an 8-byte Char Array with the sub-table's name, followed by TKEY. For the MAIN Table this points directly to TKEY!


The TKEY Block of an sub-table contains the CRC32-values of the entry-titles. The game calculates the CRC32-value out of a given string and checks if they exist in the GXT.


CHAR[4] - 4b  - TKEY
INT32  - 4b  - Blocksize

//Array of [Blocksize / 8]
INT32  - 4b  - Entryoffset
INT32  - 4b  - CRC32 (Entryname)

The TKEY block is directly followed by the TDAT Block which contains the contents of the entries. The Entry-offset is relative to the TDAT + 4 offset.



CHAR[4] - 4b  - TDAT
INT32  - 4b  - Blocksize

From here the entry-offset of each entry points to the content. The content can have different sizes. However it always ends in '\0'! For Example "Hello!" needs to be transformed to "Hello!\0" here and this gives a size of 6 bytes (To tell it in a short form content is a null-terminated string). If this is the 1st content in TDAT the next got an offset of 0x06.

German Characters

This is the list of our German characters:


Character    Value
Ä            131
ä            154
Ö            145
ö            168
Ü            149
ü            172
ß            150 


list for GTA4 texts

See also

SA GXT file

View user profile

Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum