Garry's Mod Wiki


boolean GM:PreRegisterSENT( table ent, string class )

Just Added

This was just added in the latest version (2021.01.27). It might only be available on the Dev Branch right now.



1 table ent
The entity table to be registered.
2 string class
The class name to be assigned.


1 boolean
Return false to prevent the entity from being registered. Returning any other value has no effect.


Disallow registration of entities created by Garry, and change admin-only entities into regular entities.

hook.Add( "PreRegisterSENT", "MakeThingsFun", function( ent, class ) if ( ent.Author == "Garry Newman" ) then return false else ent.AdminOnly = false end end )

Page Links

Special Pages



Render Time: 89ms

DB GetPage 52
Generate Html 8
SaveChanges (1) 15
Render Body 0
Render Sidebar 11