Garry's Mod Wiki

table.MemberValuesFromKey

  table table.MemberValuesFromKey( table inputTable, any keyName )

Description

Returns an array of values of given with given key from each table of given table.

See also table.KeysFromValue.

Arguments

1 table inputTable
The table to search in.
2 any keyName
The key to lookup.

Returns

1 table
A list of found values, or an empty table.

Example

Output:
1 = 1524511793 2 = 242776816 3 = 1452613192 4 = 196980498 5 = 210637861 6 = 180495527 7 = 708804738 8 = 603034140 9 = 526098847 10 = 457478322 11 = 497881072 12 = 635999365 ...