Adds an item to this menu.
Namespace:
SampSharp.Entities.SAMP
Assembly:
SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax public int AddItem(
string col0Text,
string col1Text = null
)
Parameters
- col0Text
- Type: SystemString
The text for the left column. - col1Text (Optional)
- Type: SystemString
The text for the right column. If this menu only has one column, this value is ignored.
Return Value
Type:
Int32The index of the row this item was added to.
Remarks
You can only have 12 items per menu (13th goes to the right side of the header of column name (colored), 14th
and higher not display at all). Maximum length of menu item is 31 symbols.
See Also