Garry's Mod Wiki

TYPE

Description

Enumerations used by net.ReadType and returned by TypeID

Values

TYPE_NONE-1Invalid type
TYPE_INVALID-1
We advise against using this. It may be changed or removed in a future update. Use TYPE_NONE
TYPE_NIL0nil
TYPE_BOOL1boolean
TYPE_LIGHTUSERDATA2light userdata
TYPE_NUMBER3number
TYPE_STRING4string
TYPE_TABLE5table
TYPE_FUNCTION6function
TYPE_USERDATA7userdata
TYPE_THREAD8thread
TYPE_ENTITY9Entity and entity sub-classes including Player, Weapon, NPC, Vehicle, CSEnt, and NextBot
TYPE_VECTOR10Vector
TYPE_ANGLE11Angle
TYPE_PHYSOBJ12PhysObj
TYPE_SAVE13ISave
TYPE_RESTORE14IRestore
TYPE_DAMAGEINFO15CTakeDamageInfo
TYPE_EFFECTDATA16CEffectData
TYPE_MOVEDATA17CMoveData
TYPE_RECIPIENTFILTER18CRecipientFilter
TYPE_USERCMD19CUserCmd
TYPE_SCRIPTEDVEHICLE20
We advise against using this. It may be changed or removed in a future update. Leftover from GMod 13 Beta
TYPE_MATERIAL21IMaterial
TYPE_PANEL22Panel
TYPE_PARTICLE23CLuaParticle
TYPE_PARTICLEEMITTER24CLuaEmitter
TYPE_TEXTURE25ITexture
TYPE_USERMSG26bf_read
TYPE_CONVAR27ConVar
TYPE_IMESH28IMesh
TYPE_MATRIX29VMatrix
TYPE_SOUND30CSoundPatch
TYPE_PIXELVISHANDLE31pixelvis_handle_t
TYPE_DLIGHT32dlight_t. Metatable of a DynamicLight structure
TYPE_VIDEO33IVideoWriter
TYPE_FILE34File
TYPE_LOCOMOTION35CLuaLocomotion
TYPE_PATH36PathFollower
TYPE_NAVAREA37CNavArea
TYPE_SOUNDHANDLE38IGModAudioChannel
TYPE_NAVLADDER39CNavLadder
TYPE_PARTICLESYSTEM40CNewParticleEffect
TYPE_PROJECTEDTEXTURE41ProjectedTexture
TYPE_PHYSCOLLIDE42PhysCollide
TYPE_SURFACEINFO43SurfaceInfo
TYPE_COUNT44Amount of TYPE_* enums
TYPE_COLOR255Metatable of a Color.
This doesn't actually represent a unique type returned by TypeID, but instead is a hack for networking colors with net.WriteType.