function onUse(player, item, fromPosition, ItemEx, toPosition, isHotkey)
local user = player:getStorageValue(xxxx) -- Put your own storage value instead of xxxx, could be anything that u dont use in your other scripts
if user == -1 then
player:setStorageValue(xxxx, 1) -- change...