fix access to console.__add_command

This commit is contained in:
Xertis
2025-11-21 21:33:48 +03:00
parent e7e47df7bf
commit 76be41e8f2
3 changed files with 18 additions and 4 deletions
+7
View File
@@ -94,6 +94,13 @@ table.sub(arr: table, start: number | nil, stop: number | nil) -> table
Возвращает обрезанную версию таблицы с индекса **start** до индекса **stop** включительно, при этом пары ключ-значение не сохраняются в новой таблице. При значениях **nil** начинает с **1** и заканчивает **#arr** соответственно.
```lua
table.insert_unique(t: table, val: any)
table.insert_unique(t: table, pos: number, val: any)
```
Добавляет значение в таблицу, только если его там не было.
```lua
table.tostring(t: table) -> string
```