Garry's Mod Wiki

Entity:GetCreationID

  number Entity:GetCreationID()

Description

Returns entity's creation ID. Unlike Entity:EntIndex or Entity:MapCreationID, it will always increase and old values won't be reused.

Returns

1 number
The creation ID