Get the index of the item in the custom class
Example:
primary = self GetLoadoutItem( 0, primary )
* = mandatory