client
addEventHandler("onClientGUIDoubleClick", resourceRoot, function( )
if source == GridList[1] then
local row = guiGridListGetSelectedItem(GridList[1])
if row ~= -1 then
triggerServerEvent("skin", localPlayer, tonumber(guiGridListGetItemText(GridList[1], row, 2)))
end
end
end)
server
addEvent("skin", true)
addEventHandler("skin", root, function(ID)
if ID then
setElementModel(source, ID)
end
end)