table.remove
Equal to the native table.remove of lua but accept string as position
| Argument | Data Type | Needed | Default | Description |
|---|---|---|---|---|
Table | table | - | The table | |
Position | number/string | - | The position of the data to remove |
Dont need to be called every frame
Example
local tabletocheck = {
["Hello"] = 5,
["Utility"] = 1,
}
table.remove(tabletocheck, "Hello")
print(json.encode(tabletocheck))
Expected result
{"Utility":1}