NULL

From GMod Wiki

Jump to: navigation, search

NULL is an entity object that does not exist in the world.

Remember that in addition to being NULL, a value referring to an inexistant entity can also be nil, which must be treated separately.

If you are checking whether an entity exists or not then use either ValidEntity(ent) or this condition "Ent and Ent:IsValid()". First check if it's nil then if it's valid.

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox