Skip to content
/SLASHPLAY

How to delete an entity in GMod

With sv_cheats 1 on, look at the entity and type ent_remove in your game console to delete it. Add a name or class to remove those instead.

ent_remove

Removes the entity you are looking at, or the named entities; needs sv_cheats 1.

ent_remove [name|class]

Examples

ent_remove

Delete what you are aiming at.

Arguments

name|classOptional
Entity name or class, empty for the one under your crosshair.

What it does

With no argument it deletes whatever is under your crosshair.

The game's own description: Removes the given entity(s) Arguments: {entity_name} / {class_name} / no argument picks what player is looking at

Run it on your server

On a SLASHPLAY server, type it in the Console tab of the server page; the reply shows right under it. A value set there lasts until the server restarts. To keep it, add the line to garrysmod/cfg/server.cfg. New to this? Start a GMod server first.

Your own
GMod server.

From $0.03 an hour, only while it runs. New accounts get 6 free tokens.