DComboBox/GetOptionTextByData

From Garry's Mod
Jump to: navigation, search
 DComboBox:GetOptionTextByData( )

DescriptionPanelFunc

Returns an option's text based on the given data.

Arguments

string data

The data to look up the name of.

If given a number and no matching data was found, the function will test given data against each tonumber'd data entry.

Returns

string

The option's text value.

If no matching data was found, the data itself will be returned. If multiple identical data entries exist, the first instance will be returned.
Personal tools
Navigation