Garry's Mod Wiki

LocalPlayer

LocalPlayer

  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]

Special Pages


Wikis

?

Render Time: 18ms

DB GetPage 3
Generate Html 2
SaveChanges (1) 5
Render Body 0
Render Sidebar 6