Player::weaponAmmo

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Gets ammo from the current player's weapon
Note: this property is read-only.

Syntax

Number player.weaponAmmo;

Examples

It will show ammo from the current player's weapon

Server-Side
mp.events.addCommand('ammo', (player) => {
  player.notify(`Ammo: ${player.weaponAmmo}`);
});

See Also