[QUESTION] Remove Button on RP_DownTown_v2

Is there a way I could remove the gun machine’s buttons? We don’t want it there because it gives free guns, so I want to remove it via LUA instead of remaking the map.

Thanks for your help!

[lua]local function RemoveGunMachine()
for k, v in pairs( ents.GetAll() ) do
if v:GetModel() == “*162” or v:GetModel() == “*163” or v:GetModel() == “*164” then
v:Remove()
end
end
end
hook.Add( “InitPostEntity”, “RemoveGunMachine”, RemoveGunMachine )[/lua]

If the buttons have targetnames, you could use:

[lua]
for _, v in pairs(ents.FindByName(“targetname”)) do
v:Remove()
end
[/lua]

Seems so, so it would be:
[lua]local function RemoveGunMachine()
for _, v in pairs(ents.FindByName(“gunshop_gunmaker_buttons”)) do
v:Remove()
end
end
hook.Add( “InitPostEntity”, “RemoveGunMachine”, RemoveGunMachine )[/lua]

There is already made an admin room for that, witch has a big scoreboard that got that options. The only way you can get out there is by using no clip.

I know this, I want it to be automatic.

-snip-