type
Example
Print the name of a few types.
Output:
number
string
table
Example
Example
A list of code showing how you can use the type function in replacement with any of the is*
functions. (example being istable, isentity, etc.)
print( type( LocalPlayer() ) )
print( type( Vector() ) )
print( type( Angle() ) )
print( type( Entity( num ) ) ) -- num is the EntIndex for the entity
print( type( vgui.Create( "DFrame" ) ) )
Output:
Player
Vector
Angle
Entity
Panel