Skip to main content

GiveAmmoToPlayer

Description

Note that giving a weapon like the spudgun will not give spuds, but instead give spudguns (instead, use the potato weapon).

function GiveAmmoToPlayer(weapon, ammo, show) --[[ ... ]] end

Parameters

  • weapon: integer - The ID of the weapon to modify ammo for.
  • ammo: integer - The amount of ammo to give (can be negative to remove ammo).
  • show: boolean - If false, the on-screen ammo update prompt will not be shown.

Return Values

None.

Example

None.