Entity:GetEntityIndex(Entity) shared Get entity index. Returns 0 for NULL entities. Argument entity Entity Returns integer The entity index. Examples Entity:GetEntityIndex – Get entity index. Returns 0 for NULL entities.