Garry's Mod Wiki

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]

Page Links


Special Pages


Wikis

?

Render Time: 354ms

DB GetPage 42
Generate Html 3
SaveChanges (1) 292
Render Body 0
Render Sidebar 9