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
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
Naww didnt look on his signatureWhy should he use metatables if he's using 0.3/0.4?![]()