Garry's Mod Wiki

table.KeyFromValue

  any table.KeyFromValue( table tab, any value )

Description

Returns the first key found to be containing the supplied value

Arguments

1 table tab
Table to search
2 any value
Value to search for

Returns

1 any
Key