Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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!
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerSex(cid, 0) then
doPlayerSetSex(cid, 1)
doRemoveItem(item.uid, 1)
elseif getPlayerSex(cid, 1) then
doPlayerSetSex(cid, 0)
doRemoveItem(item.uid, 1)
end
return true
end
@Himii
Please try to use more metatables instead :/
Here is something fast i made:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local player = Player(cid)
player:setSex(player:getSex() == PLAYERSEX_FEMALE and PLAYERSEX_MALE or PLAYERSEX_FEMALE)
player:getPosition():sendMagicEffect(CONST_ME_HOLYAREA)
player:sendTextMessage(MESSAGE_INFO_DESCR, "You have changed your gender.")
Item(item.uid):remove(1)
return true
end