PlayerWeaponChange

From RAGE Multiplayer Wiki
Revision as of 21:19, 19 January 2018 by Mcfloy (talk | contribs) (Created page with "Event triggered when a player changes his weapon. ==Parameters== * '''player''' * '''oldWeapon''', hash of the old weapon * '''newWeapon''', hash of the new weapon ==Example...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Event triggered when a player changes his weapon.

Parameters

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

Example

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