SerweryWłasny serwerDla twórcówForumFAQDokumentacjaBezpieczeństwo
Pobierz launcher
  1. Dokumentacja
  2. Funkcje wspólne
  3. getPlayerClothesAll

Funkcja

getPlayerClothesAll

Serwer i klientUbraniaTylko Trilogy Hub

Zwraca cały ubiór gracza ustawiony przez skrypty: tabelę część -> { texture, model, color, name }.

Składnia

table getPlayerClothesAll(player thePlayer)

Argumenty

thePlayerplayer
Gracz.

Zwraca

Tabela { [część] = { texture, model, color, name } } albo false.

Przykład

Zapis stroju gracza do danych konta.

addEventHandler("onPlayerQuit", root, function()
    local account = getPlayerAccount(source)
    if not isGuestAccount(account) then
        setAccountData(account, "stroj", toJSON(getPlayerClothesAll(source)))
    end
end)

Zobacz też