Quote
ammoin: ammo currently loaded into the weapon
But I need this specific item id while all I seen was itemtype id which is useless here.
Scripts
Item id that player currently carries.
Item id that player currently carries.
1

player(,'weapontype') suffice?
Apache uwu and didn't provide a link to your file
Sudden Death: Maybe that file could work?
Apache uwu: YES, I finally made it to work but I had to change table for variable. It's really helpfull, thank you for making it.addhook("log","_log")
parse("items")
function _log(text)
	if string.sub(text,1,20)=="Tpl.weapon: #0, pl: " then
		a,b,c,d,e,f=string.match(text,"Tpl.weapon: #0, pl: (.*), typ: (.*) (.*), a: (.*)|(.*), m: (.*)")
		ammoin=tonumber(d)
		--msg("Ammoin "..ammoin.."")
		return 1
	end	
end
1
