xPlayer.addWeapon

1
xPlayer.addWeapon(weaponName, ammo)

This function adds a weapon.

Arguments

Argument Data Type Optional Default Value Explanation
weaponName string No - Weapon name
ammo number No - Ammo count