Skip to content
/SLASHPLAY

How to spawn any entity in GMod

With sv_cheats 1 on, type ent_create npc_grenade_frag in your game console to create that entity where you are looking, even if the spawn menu lacks it.

ent_create

Creates any entity by class name where you are looking; needs sv_cheats 1.

ent_create <class> [key value ...]

Examples

ent_create npc_grenade_frag

Spawn a live grenade.

ent_create prop_physics model models/props_c17/oildrum001.mdl

Spawn a prop with a model.

Arguments

classRequired
Entity class name.
key valueOptional
Keyvalues to set on the entity.

What it does

Can spawn entities that are not in the spawn menu. Extra key and value pairs after the class set keyvalues on the new entity.

The game's own description: Creates an entity of the given type where the player is looking. Additional parameters can be passed in in the form: ent_create <entity name> <param 1 name> <param 1> <param 2 name> <param 2>...<param N name> <param N>

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.