Garry's Mod Wiki

IsValid

boolean IsValid( any toBeValidated )

Description

Returns whether an object is valid or not. (Such as Entitys, Panels, custom table objects and more). Checks that an object is not nil, has an IsValid method and if this method returns true.

Due to vehicles being technically valid the moment they're spawned, also use Vehicle:IsValidVehicle to make sure they're fully initialized

Arguments

1 any toBeValidated
The table or object to be validated.

Returns

1 boolean
True if the object is valid.

Page Links


Special Pages


Wikis

?

Render Time: 36ms

Session 0
DB GetPage 3
Generate Html 12
SaveChanges 7
Render Body 0
Render Sidebar 11