- Dokumentacja
- Funkcje wspólne
- getPlayerClothesAll
Funkcja
getPlayerClothesAll
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)