Jump to content

Question

4 answers to this question

Recommended Posts

  • 0

use getCreatureOutfit(cid).

 

por exemplo se vc quer pegar a cor da cabeça vc usaria

 

getCreatureOutfit(cid).lookHead

 

aqui uma função para você:

 

function getOutfitColor(cid)
o = getCreatureOutfit(cid)
local str,color = "",{["Head"] = o.lookHead,["Body"] = o.lookBody,["Legs"] = o.lookLegs,["Feet"] = o.lookFeet} 
for i,x in pairs(color) do 
str = str.."\n ".. i .. " [".. x .. "]\n"
end
return doPlayerPopupFYI(cid, str)
end

  • 0

@SrNight,

isso vai me retornar o valor da cor?

exatamente, exemplo em uma talkaction:

 

function onSay(cid, words, param, channel)  
return getOutfitColor(cid)
end 

 

0LlvF.png

Edited by SrNight
×
×
  • Create New...