Entity Question


Is it possible to get every entity your client created into an array?

I know that entity’s are locally spawned and synced to the server, is there a event for when a entity spawns or something similar?..


local entity = *function that spawns it*
and store ‘entity’ in a table or something


Not sure you understand what I’m asking, every entity that the client locally creates, not spawned in by scripts. The peds that gta randomly spawn around you.