Builtin Types

Lua-provided types.

type float
type double
type int
type uint
type uint64
type string
type boolean

float

A floating-point number. This is a single-precision floating point number. Whilst Lua only uses double-precision numbers, when a function takes a float, the game engine will immediately convert the double-precision number to single-precision.

double

A double-precision floating-point number. This is the same data type as all Lua numbers use.

int

32-bit signed integer. Possible values are -2,147,483,648 to 2,147,483,647.

uint

32-bit unsigned integer. Possible values are 0 to 4,294,967,295.

uint64

64-bit unsigned integer. Possible values are 0 to 18,446,744,073,709,551,615.

string

Strings are enclosed in double-quotes, like this "hi".

boolean

Either true or false.