someone can fix my script?
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local config = {
sw1 = 1313,
item = 1945,
value= 2020,
}
if item.uid == config.sw1 and item.itemid == config.item and getGlobalStorage(config.value) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Done")
doRemoveItem(getThingfromPos({x=1022, y=1183, z=7, stackpos=1}).uid,1)
end
return TRUE
end
Last edited: