mirror of
				https://github.com/ErikasKontenis/SabrehavenServer.git
				synced 2025-10-31 03:56:22 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			260 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			260 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
| function onUse(player, item, fromPosition, target, toPosition, isHotkey)
 | |
| 	local slot = player:getSlotItem(CONST_SLOT_HEAD)
 | |
| 	if slot and item.uid == slot.uid then
 | |
| 		player:getPosition():sendMagicEffect(CONST_ME_GIFT_WRAPS)
 | |
| 		return true
 | |
| 	end
 | |
| 
 | |
| 	return false
 | |
| end
 | 
