PlayerCommand

From RAGE Multiplayer Wiki
Revision as of 21:41, 20 September 2017 by Jack Savage (talk | contribs)

This event is triggered when player send command .

Parameters

  • player - player, who send command.
  • params - the command params.

Example

Server-Side
mp.events.addCommand('commandName', (player, _, Name, message) => 
{
    //Code
    console.log(Name + ' '+ message);
});

See also

Checkpoint

Colshape

Entity

Player

Streaming

Vehicle

Waypoint