Garry's Mod Wiki

Garry's Mod Wiki

  Player LocalPlayer()

Description

Returns the player object of the current client.

LocalPlayer() will return NULL until all entities have been initialized. See GM:InitPostEntity.

Returns

1 Player
The player object representing the client.

Example

Demonstrates the use of this function.

Output: Player [1][Player1]

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...