Lua Globals

Afficher les obsolètes

The following is a list of functions and variables that are native to Lua. These functions can be used in a standard installation of Lua 5.1.4, though there are some differences in how some of these work on Roblox.

Résumé

Fonctions

Propriétés

  • A table that is shared between all scripts of the same context level.

  • A global variable that holds a string containing the current interpreter version.

Fonctions

assert

Variant

Paramètres

value: Variant
errorMessage: string
Valeur par défaut : assertion failed!

Retours

Variant

collectgarbage

Variant

Paramètres

operation: string

Retours

Variant

error

void

Paramètres

message: string
level: number
Valeur par défaut : 1

Retours

void

getmetatable

Variant

Paramètres

t: Variant

Retours

Variant

ipairs

Paramètres

loadstring

Variant

Paramètres

contents: string
chunkname: string

Retours

Variant

newproxy

Paramètres

addMetatable: bool
Valeur par défaut : false

Retours

Paramètres

pcall

Paramètres

func: function
args: Tuple

Retours

Variant

print

void

Paramètres

params: Tuple

Retours

void

rawequal

Paramètres

v1: Variant
v2: Variant

Retours

rawget

Variant

Paramètres

index: Variant

Retours

Variant

rawlen

Paramètres

Retours

rawset

Paramètres

index: Variant
value: Variant

Retours

select

Paramètres

index: Variant
args: Tuple

Retours

setmetatable

Paramètres

newMeta: Variant

Retours

tonumber

Variant

Paramètres

arg: Variant
base: number
Valeur par défaut : 10

Retours

Variant

tostring

Paramètres

e: Variant

Retours

type

Paramètres

v: Variant

Retours

unpack

Variant

Paramètres

list: table
Valeur par défaut : 1
Valeur par défaut : #list

Retours

Variant

xpcall

Paramètres

args: Tuple

Retours

Variant

Propriétés

A table that is shared between all scripts of the same context level.

_VERSION

A global variable (not a function) that holds a string containing the current interpreter version.