-
-
Notifications
You must be signed in to change notification settings - Fork 5
GetTokenNameByIndex
Anthony Headley edited this page Apr 25, 2020
·
1 revision
Gives the command token given it's index. Not sure how safe it would be to trust the index, but a good way to iterate through all the commands.
Name | Type | Description | Optional |
---|---|---|---|
index | int | index to retrive token for |
Type | Description |
---|---|
string | Command Token |
local x
local i = 1
x = GetTokenNameByIndex(i)
repeat
Echo(i .. " " .. x)
i = i + 1
x = GetTokenNameByIndex(i)
until x == nil
-- 1 Flash
-- 2 Black
-- 3 Go+
-- 4 Go-
-- ...
-- 120 +
-- 121 -