Removing items at this position.

I want a lua file for the autorun folder that would remove entities at a position on a map.
Also a concommand to get the entitie’s position please.

You probably mean to remove entities on the map at the start right?
An easiest method would be to remove them by their entity index which is always the same.

This goes serverside :
[lua]local EntitiesToRemove = {34,35,45,122} – List of indexes of the entities to remove

hook.Add(“InitPostEntity”, “MapStart”, function()
for key,index in pairs(EntitiesToRemove) do

In-game (SinglePlayer) to find out an entity’s index look at it and type this in console :
lua_run print(Entity(1):GetEyeTrace().Entity:EntIndex())