Skip to content

Type System

x87 edited this page Apr 26, 2021 · 9 revisions

Base Types

  • int - negative and positive integer numbers; 1, 2, or 4 bytes.
  • float - floating-point numbers; 4 bytes (2 bytes in GTA3).
  • string - either a fixed-length string (up to 7 characters), or a variable-length string (up to 255 characters).
  • string128 - (SA only) raw 128 bytes of data
  • arguments - variable number of parameters of other types serving as initial values to the new script

Semantic Types

  • bool - (0,1)
  • label - an offset within the main section (positive integer numbers and zero) or within a mission or script (negative integer numbers)
  • model_any - any valid model id
  • model_ide - a subset of model ids defined in .ide files (default.ide)
  • gxt_key - a lookup key referencing a piece of text in GXT table

Enumerated Types

  • Start with a capital letter, e.g. PedType

Class Types

  • Start with a capital letter, e.g. Player or CarGenerator
Clone this wiki locally