wizinx
Active Member
Hello everyone, I need help to finish the action, I need you to take money away from using the item and add the mount, could someone finish it? Thanks.
Lua:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
local mountId = {7, 8, 9}
player:addMount(mountId[math.random(#mountId)])
player:setStorageValue(11555, os.time() + 86400)
player:sendTextMessage(MESSAGE_INFO_DESCR, "You received rented mount.")
player:getPosition():sendMagicEffect(13)
return true
end