Garry's Mod Wiki

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: 37ms

DB GetPage 3
Generate Html 3
SaveChanges 15
Render Body 0
Render Sidebar 14