guiComboBoxRemoveItem | Multi Theft Auto: Wiki Skip to content

guiComboBoxRemoveItem

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.


This function removes an item from a combobox.

Syntax

guiComboBoxRemoveItem ( )

Code Examples

client

This example removes selected item.

addCommandHandler("remove",function()
local item = guiComboBoxGetSelected(comboBox)
local text = guiComboBoxGetItemText(comboBox, item)
guiComboBoxRemoveItem(comboBox, item)
outputChatBox("Item with text " .. text .. " has been removed!")
end)

See Also

GUI Functions