Garry's Mod Wiki

Revision Difference

Player:SetAmmo#517991

<function name="SetAmmo" parent="Player" type="classfunc"> <description>Sets the amount of the specified ammo for the player.</description> <realm>Shared</realm> <args> <arg name="ammoCount" type="number">The amount of ammunition to set.</arg> <arg name="ammoType" type="any">The ammunition type. Can be either &lt;page&gt;number&lt;/page&gt; ammo ID or &lt;page&gt;string&lt;/page&gt; ammo name.</arg> <arg name="ammoType" type="any">The ammunition type. Can be either <page>number</page> ammo ID or <page>string</page> ammo name.</arg> </args> </function>