guiComboBoxAddItem | Multi Theft Auto: Wiki Skip to content

guiComboBoxAddItem

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


Adds an item to a combobox.

Syntax

guiComboBoxAddItem ( )

Code Examples

client

This Example will add an item to comboBox when player use commandaddItemfollowed by the value of the item.

addCommandHandler("addItem", function (command, value)
guiComboBoxAddItem(comboBox, value)
outputChatBox("Item with text " .. value .. " has been added!")
end)

See Also

GUI Functions