Players::local

From RAGE Multiplayer Wiki

Client-Side
Function

 JavaScript



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

JavaScript Syntax

Syntax

mp.players.local

Example

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


See also