Garry's Mod Wiki

Revision Difference

Player:IsListenServerHost#550973

<function name="IsListenServerHost" parent="Player" type="classfunc"> <description>Returns if a player is the host of the current session.</description> <realm>Server</realm> <rets> <ret name="" type="boolean">True if the player is the listen server host, false otherwise. This will always be true in single player, and false on a dedicated server.</ret> <ret name="" type="boolean">`true` if the player is the listen server host, `false` otherwise. This will always be `true` in single player, and `false` on a dedicated server.</ret> </rets> </function>