Skip to content

entities.GetLocalPlayer

Get the LocalPlayer entity.

Syntax

userdata entities.GetLocalPlayer()

Parameters

This function has no parameters.

Return value

The function returns the userdata of LocalPlayer entity.

Example

local LocalPlayer = entities.GetLocalPlayer();