Skip to content

xPlayer.removeWeapon

xPlayer.removeWeapon(weaponName, ammo)

This function removes a weapon from the player.

Warning

The ammo variable is optional to delete a certain amount of ammo. Not specifying it will remove all available ammo.