Garry's Mod Wiki

table.getn

  number table.getn( table tbl )

Description

We advise against using this. It may be changed or removed in a future update. This function was deprecated in Lua 5.1 and is removed in 5.2. Use the length (#) operator instead.

Returns the length of the table.

Arguments

1 table tbl
The table to check.

Returns

1 number
Sequential length.