Garry's Mod Wiki

list.GetEntry

  any or nil list.GetEntry( string list, string key )

Recently Added

This was recently added in version (2025.05.09). It might only be available on the Dev Branch right now.

Description

Returns a copy of the entry in the list list with key key.

Arguments

1 string list
List to search through
2 string key
The key to search for

Returns

1 any or nil
Returns the value if the list contains the key, nil otherwise