Concepts - NULL Entity
NULL Entity
NULL is an error value specific to Garry's Mod lua that represents an invalid Entity.
Unlike nil, which has no data type, NULL is an Entity and has the functions of an Entity defined on it.
If called, functions on NULL will either return error values or throw an error message.
These functions exist primarily to provide more meaningful error messages to the user and developer.
See also nil
Example
In this example, we'll examine some of the behavior of NULL
Garry's Mod
Rust
Steamworks
Wiki Help