Garry's Mod Wiki

Entity:GetCreationID

  number Entity:GetCreationID()

Description

Returns entity's creation ID. Unlike Entity:EntIndex or Entity:MapCreationID.

It will increase up until value of 10 000 000, at which point it will reset back to 0.

Returns

1 number
The creation ID