Garry's Mod Wiki

Garry's Mod Wiki

  boolean GM:PreRegisterSENT( table ent, string class )

Description

Arguments

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

Returns

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

Example

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 end ent.AdminOnly = false end )

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...