The only way to get the number of item in inventory is vanilla obj_is_carrying_obj_pid but it sums object counts from all stacks. This doesn't provide full information because different stacks of item of the same pid can have different properties (namely ammo type and ammo amount).
The only way to get the number of item in inventory is vanilla obj_is_carrying_obj_pid but it sums object counts from all stacks. This doesn't provide full information because different stacks of item of the same pid can have different properties (namely ammo type and ammo amount).