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-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
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