Garry's Mod Wiki

table.GetLastKey

  any table.GetLastKey( table tab )

Description

We advise against using this. It may be changed or removed in a future update. Instead, use the result of the length (#) operator, ensuring it is not zero. Non-numerically indexed tables are not ordered and do not have a last key.

Returns the last key found in the given table

Arguments

1 table tab
Table to retrieve key from

Returns

1 any
Key