Garry's Mod Wiki

Garry's Mod Wiki

  boolean Entity:IsPlayer()

Description

Checks if the entity is a player or not.

Returns

1 boolean
Whether the entity is a player.

Example

Checks if two entities are players.

print( Entity( 1 ):IsPlayer() ) print( ents.FindByClass( "prop_physics" )[ 1 ]:IsPlayer() )
Output:
true false

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 twice a day. Edits and history are not available.

Last Parsed: Loading...