function isIn(list)
local status
for key, value in pairs(list) do
if key == param then
return key, value
end
end
end
--you need to add the mounts and id's
--separate each entry with comma
local mounts = {
slug = 1021,
}
local item_id = 1021 --w/e item you are using
function onSay(cid, words, param)
if isIn(mounts) and doPlayerRemoveItem(cid,item_id,1) then
doPlayerAddMount(cid, value)
end
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "That mount doesn't exist or you do not have the required item.")
end
return
end