PlayerWeaponChange

From RAGE Multiplayer Wiki
Revision as of 10:58, 30 April 2019 by RoboN1X (talk | contribs)

Event triggered when a player changes his weapon.

Parameters

  • player
  • oldWeapon, hash of the old weapon
  • newWeapon, hash of the new weapon

Example

Server-Side
mp.events.add("playerWeaponChange", (player, oldWeapon, newWeapon) => {
 // Do what you want.
});

See also

Checkpoint

Colshape

Entity

Player

Streaming

Vehicle

Waypoint