Garry's Mod Wiki

InvalidateInternalEntityCache

  InvalidateInternalEntityCache( Entity ent )

Recently Added

This was recently added in version (2025.06.12). It might only be available on the Dev Branch right now.

Description

This is used internally - although you're able to use it you probably shouldn't.

Called by the engine before GM:OnEntityCreated or GM:EntityRemoved hooks are called. Internally used to clear the player.Iterator and ents.Iterator cache

Arguments

1 Entity ent
An entity that is about to be removed or that has just been created.