Skip to content

entities.GetLocalPlayer s1

Returns the local player entity.

Syntax

entities.GetLocalPlayer() → Entity

Returns

Returns userdata.

Notes

Note

It's recommended to check if localplayer entity is alive / not nil to avoid errors