Global/TypeID

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (Changed return type to number)
m (Bug)
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function
+
{{Func
| Name = TypeID
+
|Name=TypeID
| Namespace = [[Global]]
+
|Parent=Global
| Realm = Shared
+
|Description=Gets the associated type ID of the variable.
}}
+
  
{{Syntax
+
{{Bug|Request=1120|This does not work properly with _LOADLIB objects.}}
| Name = TypeID
+
|Realm=Shared
| Description = Gets the associated type id of the variable.
+
|IsClass=No
| Returns = {{Return|number|type id of the variable, see {{EnumLink|TYPE}}}}
+
}}
 
+
{{Arg
| Arg1Name = variable
+
|type=any
| Arg1Type = any
+
|name=variable
| Arg1Req = true
+
|desc=The variable to get the type ID of.
| Arg1Desc = The variable to get the type id of.
+
}}
 +
{{Ret
 +
|type=number
 +
|desc=The type ID of the variable. See the {{Enum|TYPE}}.
 
}}
 
}}
 
==See Also==
 
* {{GlobalFunction|type}}
 

Revision as of 20:09, 2 August 2018

 TypeID( )

Description

Gets the associated type ID of the variable.

BUG

This does not work properly with _LOADLIB objects.

Request Tracker: #1120

Arguments

any variable

The variable to get the type ID of.

Returns

number

The type ID of the variable. See the TYPE_ Enums.
Personal tools
Navigation