entitiyCreating: Differentiate script created entities from popuplation entities

Hey!

I’m experimenting with the entityCreating/entityCreated event and I was trying to recognize popuplation entities on server side

I thought I’ve found a solution with GetEntityPopulationType but script created vehicle had the same return as the popuplation vehicles.

Is there any way differentiate entities in that way?

You’re actually already right on the money.

Pop types 2, 4, 5, and 6 are generic entity spawns, while 0 is player spawned props, and 7 is player spawned vehicles; that’s what I’ve determined from my own testing anyway.