Commands/Lua
Reference for console commands, Lua hooks and Lua commands in CS2D.
- Console Commands are entered in console, executed with key-binds, cfg-files or with Lua parse
- Lua Hooks execute Lua when events occur - some have a return value which can change the game behavior
- Lua Commands are used to retrieve game data or to perform actions in Lua scripts
CS2D Console Commands
mp_supply_itemsCategories
Parameters
- itemlist (text): comma separated list of items or "default"
Info
Defines a list of items which are available in the supply building. you can specify up to 9 items either by entering their name or their ID.
Weapon and item names and IDs:
the items 1-6 will be available in the supply and the super supply.
the items 7-9 will only be available in the super supply
you can also use the value "default" to reset the itemlist to its default value.
sample usage:
mp_supply_items "Laser,M4A1,Aug,HE,Flashbang"
Lua Hooks
Lua Commands
Categories
Parameters
- itemlist (text): comma separated list of items or "default"
Info
Defines a list of items which are available in the supply building. you can specify up to 9 items either by entering their name or their ID.
Weapon and item names and IDs:
the items 1-6 will be available in the supply and the super supply.
the items 7-9 will only be available in the super supply
you can also use the value "default" to reset the itemlist to its default value.
sample usage:
mp_supply_items "Laser,M4A1,Aug,HE,Flashbang"
Weapon and item names and IDs:
the items 1-6 will be available in the supply and the super supply.
the items 7-9 will only be available in the super supply
you can also use the value "default" to reset the itemlist to its default value.
sample usage:
mp_supply_items "Laser,M4A1,Aug,HE,Flashbang"