Garry's Mod Wiki

Entity:IsPlayer

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( player.GetByID( 1 ):IsPlayer() ) print( ents.FindByClass( "prop_physics" )[ 1 ]:IsPlayer() )
Output:
true false

Page Links


Special Pages


Wikis

?

Render Time: 35ms

DB GetPage 3
Generate Html 7
SaveChanges (1) 10
Render Body 0
Render Sidebar 12