-
Notifications
You must be signed in to change notification settings - Fork 0
Home
cyancoderix edited this page Aug 14, 2025
·
3 revisions
void table.copy(a,b)
Copies all the key with values from a to b.
bool table.contains(table, name, value)
Returns true if contains the name or value. (For searching only name or value, make the other nil)
int table.indexOf(table, value)
Returns the index or the key of the value in table.
T table.findFirst(prediction)
prediction
- bool function(index,value)T
- type of elements in arrayFinds first element that correspond to prediction.
<T>[] table.findAll(prediction)
prediction
- bool function(index,value)T
- type of elements in arrayFinds all element that correspond to prediction.
void table.constTable(table)
table
- table where you want to place your constantDisclaimer: The table's original metatable is located in and accessible through
getmetatable(getmetatable(table))
(original metamethods won't work)!
Addsvoid const(key,value)
to your table. This function adds a constant. Constant will not be editable.