Garry's Mod Wiki

table.RemoveByValue

  any table.RemoveByValue( table tbl, any val )

Description

Removes only the first instance of the given value from the specified table. If the key of the value is a number, the value is removed using table.remove.

Arguments

1 table tbl
The table that will be searched.
2 any val
The value to find within the table.

Returns

1 any
The key at which the value was found, or false if the value was not found.