Players::local

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Client-Side
Function

Js.png JavaScript



Returns the local player object of the given client-side environment.

JavaScript Syntax
Jslogo.png

Syntax

mp.players.local

Example

Client-Side
  const localPlayer = mp.players.local;
  localPlayer.freezePosition(true);


See also