so i hope u answer my question.
byee
Scripts
Equip not working with nightvision
Equip not working with nightvision
1

ERROR: equip - cannot equip 59 - Night Vision (this would lead to problems)!
spawnitem, specify the ID of the item (in this case 59 - Night Vision) and both the Tile_X and Tile_Y coordination as well of the map (you can find them by using the Map Editor).
Cebra: The issue still persists, no matter what if you equip to someone the Night Vision. And he meant his ID, not the ID word itself.
... 
function equip(id,item)
	if player(id,"exists") and item and player(id,"health") > 0 then
		if item == 56 or item == 59 or item == 60 then
			local x, y = player(id,"x"), player(id,"y")
			parse("setpos "..id.." 0 0")
			parse("spawnitem "..item.." "..math.floor(x/32).." "..math.floor(y/32))
			parse("setpos "..id.." "..x.." "..y)
		else
			parse("equip "..id.." "..item)
		end
	end
end
1
