GetWeaponIDFromName

From Multi Theft Auto: Wiki
Revision as of 04:12, 3 October 2006 by JonChappell (talk | contribs)
Jump to navigation Jump to search

This function will obtain the ID of a particular weapon from its name.

Syntax

int getWeaponIDFromName ( string name )             

Required Arguments

  • name: A string containing the name of the weapon.

Returns

Returns an int if the name matches that of a weapon, false otherwise.

Example

This example does...

--This line does...
blabhalbalhb --abababa
--This line does this...
mooo

See Also