Garry's Mod Wiki

Garry's Mod Wiki

  string DComboBox:GetOptionTextByData( string data )

Description

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

Arguments

1 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

1 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.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...