Garry's Mod Wiki

Garry's Mod Wiki

  table.Empty( table tbl )

Description

Removes all values from a table.

Arguments

1 table tbl
The table to empty.

Example

Demonstrates the use of this function.

local Table = {"String Value", "Another value", Var = "Non-integer key"} table.Empty(Table) print( table.Count(Table) )
Output: 0

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...