Entity:MapCreationID
Description
Returns entity's map creation ID. Unlike Entity:EntIndex or Entity:GetCreationID, it will always be the same on same map, no matter how much you clean up or restart it.
To be used in conjunction with ents.GetMapCreatedEntity.