Garry's Mod Wiki




Called after all the entities are initialized. Starting from this hook LocalPlayer will return valid object.

At this point the client only knows about the entities that are within the spawnpoints' PVS. For instance, if the server sends an entity that is not within this PVS, the client will receive it as NULL entity.
When this hook is called on the client, net messages will reliably be received.


Some message will be printed in the console when the entities initialize.

function GM:InitPostEntity() print( "All Entities have initialized" ) end -- That way you are overriding the default hook. -- You can use hook.Add to make more functions get called when this event occurs. hook.Add( "InitPostEntity", "some_unique_name", function() print( "Initialization hook called" ) end )
Output: Initialization hook called and All Entities have initialized.

Page Links

Special Pages



Render Time: 52ms

DB GetPage 27
Generate Html 3
SaveChanges (1) 13
Render Body 0
Render Sidebar 6