CS2 cl_ent_setname Command

CS2 Command CS2 logo
cl_ent_setname <Entity ID> <New Name>

This command is used to set the target name of specified entities in the game, which is mainly useful for testing and development purposes.

Argument Information

The syntax for this command is as follows:
Name Description
Entity ID

The unique identifier of the entity whose target name you want to set.

New Name

The new target name you want to assign to the entity.

Extra Information

Find additional information relating to this command below.
sv_cheats Required
Yes
Client or Server Command
Client
Default Value
cmd
Total CS is the home of CS2 commands We boast the only complete, up-to-date database of all CS2 console commands. View All CS2 Commands
CS2 player
IPS

Command Generator

Adjust the settings below to automatically generate a command. Once you've got everything right, hit the Copy button and paste it into the console in CS:GO.

cl_ent_setname 0 <New Name>
1/2 arguments filled
Entity ID
New Name