Click or drag to resize

MenuAddItem Method

Adds an item to this menu.

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-local+709673996c0cc3c0733358a87691d1009326afa7
Syntax
C#
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: Int32
The 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