game/GetAmmoID

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Documented)
 
m (Fixed GetAmmoID wrong return value)
 
Line 13: Line 13:
 
{{Ret
 
{{Ret
 
|type=number
 
|type=number
|desc=The ammo type ID of given ammo type name, or 0 if not found
+
|desc=The ammo type ID of given ammo type name, or -1 if not found
 
}}
 
}}

Latest revision as of 06:53, 20 September 2015

 game.GetAmmoID( )

Description

Returns the ammo type ID for given ammo type name.

See game.GetAmmoName for reverse.

Arguments

string name

Name of the ammo type to look up ID of

Returns

number

The ammo type ID of given ammo type name, or -1 if not found
Personal tools
Navigation