SetMenuColumnHeader
From SA-MP Wiki
SetMenuColumnHeader
Sets the caption of a column in a menu
(menuid, column, text[])
| menuid | ID of the menu which shall be manipulated |
| column | Which column in the menu shall be manipulated |
| text[] | The caption-text for the column |
| Returns | Nothing specific. Ignore it. |
// This menu is called 'TestMenu', it has 2 rows new Menu:TestMenu; TestMenu = CreateMenu("Menu Header", 2, 200.0, 100.0, 150.0, 150.0); SetMenuColumnHeader(TestMenu, 0, "Row 1"); SetMenuColumnHeader(TestMenu, 1, "Row 2"); // Add menu items to it. AddMenuItem(TestMenu, 0, "Row1Item1"); AddMenuItem(TestMenu, 1, "Row2Item1");
Important Note: Note that you can add only 12 items with AddMenuItem. The 13th object of a menu would replace the header of the column which is correctly set with this function.
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- AddMenuItem: Add an item to a menu.
- CreateMenu: Create a menu.
Related Callbacks
The following callbacks might be useful, as they're related to this function in one way or another.
- OnPlayerSelectedMenuRow: Called when a player selected a row in a menu.
