Garry's Mod Wiki

Garry's Mod Wiki

  string Entity:GetClass()

Description

Returns the classname of a entity. This is often the name of the Lua file or folder containing the files for the entity

Returns

1 string
The entity's classname

Example

Prints the classname of the weapon that the player is holding.

Output: Prints the classname of the weapon that the player is holding. (ie weapon_crowbar)

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...