Traitor Equipment Item Unique ID

So, to make ttt equipmentitems, you need to have a unique ID for each item, which is the last one times two. I tried using the code as in (http://forum.facepunch.com/showthread.php?t=1430922&p=46229646&viewfull=1#post46229646), but it doesnt seem to work. My code:


hook.Add("Initialize", "GRONN_ANTIFLASHLIGHT_RUN", function()
	if !EquipmentItems then return end
    EQUIP_ANTIFLASHLIGHT = 8
	
	for role,items in pairs(EquipmentItems) do
	    for smtg,item in pairs(items) do
		    if item.id >= EQUIP_ANTIFLASHLIGHT then
			    EQUIP_ANTIFLASHLIGHT = item.id*2
			end
		end
	end
	
	local GRONN_ANTIFLASHLIGHT_ITEM = {
	    id = EQUIP_ANTIFLASHLIGHT,
		loadout = false,
		type = "item_passive",
		material = "vgui/ttt/icon_antiflashlight",
		name = "Anti Flashlight",
		desc = "Disables flashlights for 10 seconds"
	}
	
	table.insert(EquipmentItems[ROLE_TRAITOR], GRONN_ANTIFLASHLIGHT_ITEM)
end )

There is no error code, but another item with the same ID wont work.
Equipment class: https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/terrortown/gamemode/equip_items_shd.lua