function setPlayerSkin(thePlayer, command, target, skinid)
if not getElementData(thePlayer, \"loggedin\") then return end
if getElementData(thePlayer, \"adminszint\") >= 2 and getElementData(thePlayer, \"aduty\") == 1 or getElementData(thePlayer, \"adminszint\") >= 8 then
if target and skinid then
local targetPlayer = exports.ng_permission:getTargetPlayer(thePlayer, target)
local targetPlayerName = getPlayerName(targetPlayer):gsub(\"_\", \" \")
local thePlayerName = getPlayerName(thePlayer):gsub(\"_\", \" \")
local convertValue = tonumber(skinid)
if not getElementData(targetPlayer, \"loggedin\") then outputChatBox(\"#bc9f01[Null-Admin#bc9f01] \" .. targetPlayerName .. \"#FFFFFF Nincs bejelentkezve.\", thePlayer, 255, 255, 255, true) end
setElementModel(targetPlayer, convertValue)
outputChatBox(\"#bc9f01[Null-Admin#bc9f01] #FFFFFFMegváltoztattad #bc9f01\" .. targetPlayerName .. \"#FFFFFF skinjét. #bc9f01(\" .. convertValue .. \")\", thePlayer, 255, 255, 255, true)
outputChatBox(\"#bc9f01[Null-Admin#bc9f01] \".. getAdminName(thePlayer) ..\" #FFFFFFMegváltoztatta a #FFFFFF skinedet. #bc9f01(\" .. convertValue .. \")\", targetPlayer, 255, 255, 255, true)
else
outputChatBox(\"#bc9f01[Null-Admin#bc9f01]#FFFFFF /\".. command ..\" [#bc9f01ID/Név#FFFFFF] [#bc9f01Név#FFFFFF]\", thePlayer, 255, 255, 255, true)
end
end
end
addCommandHandler(\"setskin\", setPlayerSkin)