Garry's Mod Wiki

InvalidateInternalEntityCache

  InvalidateInternalEntityCache( boolean isPly )

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 and after GM:EntityRemoved hooks are called. Internally used to clear the player.Iterator or ents.Iterator cache

Arguments

1 boolean isPly
Reset the player.Iterator cache