Jump to content

Setar Skin no player por ID.

Recommended Posts

Estou tentando setar skin no player por ID.

alguém pode me ajudar???

exemplo de comando 


/skin 1( player ) 16(ID SKIN)

Sou muito novo nessa de Script. Então me perdoe pelos erros...



function getSkinNameFromID(i)
    local id = tonumber (i)
        assert(id, "Bad argument 1 @ getSkinFromID [Number expected, got " .. type(i) .. "]")
    local name = skinsTable[id]
        assert(name,"Bad argument 1 @ getSkinFromID [Invaild skin ID]")
    return name 

local name = getSkinNameFromID(getElementModel(localPlayer))
if name then
outputChatBox('SkinName : ('..name..') of ID ('..getElementModel(localPlayer)..')',255,255,0)
outputChatBox('Falha ao obter skin. ID errado ou não encontrado na tabela',255,255,0)

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...