Garry's Mod Wiki

table.MemberValuesFromKey

table.MemberValuesFromKey

  table table.MemberValuesFromKey( table inputTable, any keyName )

Just Added

This was just added in the latest version (2021.12.15). It might only be available on the Dev Branch right now.

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

Special Pages


Wikis

?

Render Time: 31ms

DB GetPage 4
Generate Html 6
SaveChanges (1) 10
Render Body 0
Render Sidebar 9