-
Notifications
You must be signed in to change notification settings - Fork 2
Subplugins
This store uses a subplugin based system for item uses.
public ItemResult TextStore_Item(int client, bool equipped, KeyValues item, int index, const char[] name, int &count)-
clientClient index will always be valid as this is called when the client selects the menu item -
equippedIf the client has the item "equipped", this can be used with toggle on/off items -
itemThe KeyValues handle of the item, can be used for checking item settings. You are allowed to move the position but do not close the Handle! You can set values but if you know what your doing (probably not). Note, don't save the Handle as it can be changed, store any values needed if your going to do timer/frame based activities. -
nameThe name of the item -
countThe amount the client has, this shouldn't really be changed as the return value can handle this. -
returnAn ItemResult enum which determines the end result of the item.
-
Item_NoneDoes nothing to the item -
Item_UsedRemoves one instance of the item in the client's inventory -
Item_OnMakes the item considered "equipped" -
Item_OffMakes the item not considered "equipped"