Garry's Mod Wiki

GM:NetworkEntityCreated

  GM:NetworkEntityCreated( Entity ent )

Description

Called when an entity has been created over the network.

Arguments

1 Entity ent
Created entity

Example

Prints newly created/networked entitys to the players chat.

hook.Add("NetworkEntityCreated", "InformPlayerOnEntityCreation", function(ent) chat.AddText("A entity was created/networked: " .. tostring(ent) .. " (" .. ent:GetClass() .. ")") end)