طيب كذا الوحه ما تفتح خالص @
ranks = {
{'1-',Army},
{'1-',Army},
{'1-',Army},
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
wnd = guiCreateWindow(242, 139, 318, 332, ":: Skins Systeam :", false)
guiWindowSetSizable(wnd, false)
guiSetVisible(wnd, false)
grid = guiCreateGridList(9, 23, 289, 207, false, wnd)
guiGridListAddColumn(grid, "Name", 0.9)
btn = guiCreateButton(17, 254, 276, 47, "Buy", false, wnd)
end
)
bindKey ('m','down',key)
guiSetVisible (wnd,false )
end)
function key()
guiSetVisible (wnd,not guiGetVisible (wnd))
showCursor (guiGetVisible (wnd))
end
for _, v in ipairs (ranks) do
local Row = guiGridListAddRow(grid)
guiGridListSetItemText(grid, Row, 1, v[1], false, false)
guiGridListSetItemText(grid, Row, 2, v[2], false, false)
guiGridListSetItemData ( grid, Row, 1, { v[2], v[3], v[4] } )
end
addEventHandler("onClientGUIClick",root,
function()
if source == btn then
setElementModel ( localPlayer, 300)
end
end)