• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Mounts 0.2, New Feature?

Printer

if Printer then print("LUA") end
Senator
Premium User
Joined
Dec 27, 2009
Messages
5,780
Solutions
31
Reaction score
2,300
Location
Sweden?
Hello,

I wonder on tfs 0.2 latest, there is a function to do this?
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local mountid = 1
	if getPlayerMount(cid, mountid) then
		doPlayerMount(cid,mountid) --When player use the item, they will directly mount it. Instead of right-click and mount
   	else
		doPlayerSendTextMessage(cid,22, "Sorry, but you dont have this mount.")
   	end
   	return true
end

Thanks in advice!
 
Last edited:
Hello,

I wonder on tfs 0.2, there is a function to do this?
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local mountid = 1
	if getPlayerMount(cid, mountid) then
		doPlayerMount(cid,mountid) --When player use the item, they will directly mount it. Instead of right-click and mount
   	else
		doPlayerSendTextMessage(cid,22, "Sorry, but you dont have this mount.")
   	end
   	return true
end

Thanks in advice!

0.2, version? if was older 9.0, for sure doesnt got, but for high version... will got, i think, not? hehe
 
Back
Top