Garry's Mod Wiki

TypeID

  number TypeID( any variable )

Description

Gets the associated type ID of the variable. Unlike type, this does not work with no value - an argument must be provided.

This returns garbage for _LOADLIB objects.
This returns TYPE_NIL for protos.

Arguments

1 any variable
The variable to get the type ID of.

Returns

1 number
The type ID of the variable. See the TYPE enum.