#Untied Posted April 7, 2016 Author Share Posted April 7, 2016 شيلتا لكود خالص ما فتحت @ Link to comment
Me[Z]oO Posted April 7, 2016 Share Posted April 7, 2016 شيلتا لكود خالصما فتحت @ 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,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 Link to comment
Me[Z]oO Posted April 7, 2016 Share Posted April 7, 2016 شيلتا لكود خالصما فتحت @ 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,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 Link to comment
#Mr.Rajo~,< Posted April 7, 2016 Share Posted April 7, 2016 --client addEventHandler("onGUIClientClick" ,resourceRoot , function () local SkinID = guiGridListGetItemText(Gridlist ,guiGridListGetSelectedItem(Gridlist) ,1) if ( source == btn ) then triggerServerEvent("SetSkin" ,localPlayer ,SkinID) end end ) --server addEvent("SetSkin" ,true) addEventHandler("SetSkin" ,root, function (ID) PMoney = getPlayerMoney(source) if PMoney >= 2500 then setElementModel(source ,ID) takePlayerMoney(source,2500) else outputChatBox("U don't have 2500$") end end ) Link to comment
#Mr.Rajo~,< Posted April 7, 2016 Share Posted April 7, 2016 --client addEventHandler("onGUIClientClick" ,resourceRoot , function () local SkinID = guiGridListGetItemText(Gridlist ,guiGridListGetSelectedItem(Gridlist) ,1) if ( source == btn ) then triggerServerEvent("SetSkin" ,localPlayer ,SkinID) end end ) --server addEvent("SetSkin" ,true) addEventHandler("SetSkin" ,root, function (ID) PMoney = getPlayerMoney(source) if PMoney >= 2500 then setElementModel(source ,ID) takePlayerMoney(source,2500) else outputChatBox("U don't have 2500$") end end ) Link to comment
Ahmed Ly Posted April 7, 2016 Share Posted April 7, 2016 --client addEventHandler("onGUIClientClick" ,resourceRoot , function () local SkinID = guiGridListGetItemText(Gridlist ,guiGridListGetSelectedItem(Gridlist) ,1) if ( source == btn ) then triggerServerEvent("SetSkin" ,localPlayer ,SkinID) end end ) --server addEvent("SetSkin" ,true) addEventHandler("SetSkin" ,root, function (ID) PMoney = getPlayerMoney(source) if PMoney >= 2500 then setElementModel(source ,ID) takePlayerMoney(source,2500) else outputChatBox("U don't have 2500$") end end ) بدل ID بـــ SkinID Link to comment
Ahmed Ly Posted April 7, 2016 Share Posted April 7, 2016 --client addEventHandler("onGUIClientClick" ,resourceRoot , function () local SkinID = guiGridListGetItemText(Gridlist ,guiGridListGetSelectedItem(Gridlist) ,1) if ( source == btn ) then triggerServerEvent("SetSkin" ,localPlayer ,SkinID) end end ) --server addEvent("SetSkin" ,true) addEventHandler("SetSkin" ,root, function (ID) PMoney = getPlayerMoney(source) if PMoney >= 2500 then setElementModel(source ,ID) takePlayerMoney(source,2500) else outputChatBox("U don't have 2500$") end end ) بدل ID بـــ SkinID Link to comment
#Untied Posted April 7, 2016 Author Share Posted April 7, 2016 الوحه تفتح تمام بس مش بيظهر الفي الجدول في القريد لست 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("x","down", function ( ) guiSetVisible ( wnd , not guiGetVisible ( wnd ) ) showCursor ( not isCursorShowing ( ) ) 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 ونا حاطط الاكواد Link to comment
#Untied Posted April 7, 2016 Author Share Posted April 7, 2016 الوحه تفتح تمام بس مش بيظهر الفي الجدول في القريد لست 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("x","down", function ( ) guiSetVisible ( wnd , not guiGetVisible ( wnd ) ) showCursor ( not isCursorShowing ( ) ) 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 ونا حاطط الاكواد Link to comment
#Mr.Rajo~,< Posted April 7, 2016 Share Posted April 7, 2016 (edited) --client addEventHandler("onGUIClientClick" ,resourceRoot , function () local SkinID = guiGridListGetItemText(Gridlist ,guiGridListGetSelectedItem(Gridlist) ,1) if ( source == btn ) then triggerServerEvent("SetSkin" ,localPlayer ,SkinID) end end ) --server addEvent("SetSkin" ,true) addEventHandler("SetSkin" ,root, function (ID) PMoney = getPlayerMoney(source) if PMoney >= 2500 then setElementModel(source ,ID) takePlayerMoney(source,2500) else outputChatBox("U don't have 2500$") end end ) بدل ID بـــ SkinID مايضر اذا غيرت اسم المتغير بعد استقباله :] Edited April 7, 2016 by Guest Link to comment
#Mr.Rajo~,< Posted April 7, 2016 Share Posted April 7, 2016 (edited) --client addEventHandler("onGUIClientClick" ,resourceRoot , function () local SkinID = guiGridListGetItemText(Gridlist ,guiGridListGetSelectedItem(Gridlist) ,1) if ( source == btn ) then triggerServerEvent("SetSkin" ,localPlayer ,SkinID) end end ) --server addEvent("SetSkin" ,true) addEventHandler("SetSkin" ,root, function (ID) PMoney = getPlayerMoney(source) if PMoney >= 2500 then setElementModel(source ,ID) takePlayerMoney(source,2500) else outputChatBox("U don't have 2500$") end end ) بدل ID بـــ SkinID مايضر اذا غيرت اسم المتغير بعد استقباله :] Edited April 7, 2016 by Guest Link to comment
#Mr.Rajo~,< Posted April 7, 2016 Share Posted April 7, 2016 (edited) 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("x","down", function ( ) guiSetVisible ( wnd , not guiGetVisible ( wnd ) ) SetSkins() showCursor ( not isCursorShowing ( ) ) end ); function SetSkins() 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) end end Edited April 7, 2016 by Guest Link to comment
#Mr.Rajo~,< Posted April 7, 2016 Share Posted April 7, 2016 (edited) 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("x","down", function ( ) guiSetVisible ( wnd , not guiGetVisible ( wnd ) ) SetSkins() showCursor ( not isCursorShowing ( ) ) end ); function SetSkins() 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) end end Edited April 7, 2016 by Guest Link to comment
#Untied Posted April 7, 2016 Author Share Posted April 7, 2016 ranks = { {'1-',Army}, {'1-',Army}, {'1-',Army} } اسم القريد لست grid 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 Link to comment
#Untied Posted April 7, 2016 Author Share Posted April 7, 2016 ranks = { {'1-',Army}, {'1-',Army}, {'1-',Army} } اسم القريد لست grid 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 Link to comment
#Untied Posted April 7, 2016 Author Share Posted April 7, 2016 (edited) تمام لما باجي بضعط علي واحده في القريد لست مب بيغير الشخصيه ومعي الفلوس كلنت ranks = { {'Army',Army}, {'Army',Army}, {'Army',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("x","down", function ( ) guiSetVisible ( wnd , not guiGetVisible ( wnd ) ) SetSkins() showCursor ( not isCursorShowing ( ) ) end ); function SetSkins() 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 end addEventHandler("onGUIClientClick" ,resourceRoot , function () local SkinID = guiGridListGetItemText(grid ,guiGridListGetSelectedItem(grid) ,1) if ( source == btn ) then triggerServerEvent("SetSkin" ,localPlayer ,15) end end ) server addEvent("SetSkin" ,true) addEventHandler("SetSkin" ,root, function (ID) PMoney = getPlayerMoney(source) if PMoney >= 2500 then setElementModel(source ,ID) takePlayerMoney(source,2500) else outputChatBox("U don't have 2500$") end end ) Edited April 7, 2016 by Guest Link to comment
#Untied Posted April 7, 2016 Author Share Posted April 7, 2016 (edited) تمام لما باجي بضعط علي واحده في القريد لست مب بيغير الشخصيه ومعي الفلوس كلنت ranks = { {'Army',Army}, {'Army',Army}, {'Army',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("x","down", function ( ) guiSetVisible ( wnd , not guiGetVisible ( wnd ) ) SetSkins() showCursor ( not isCursorShowing ( ) ) end ); function SetSkins() 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 end addEventHandler("onGUIClientClick" ,resourceRoot , function () local SkinID = guiGridListGetItemText(grid ,guiGridListGetSelectedItem(grid) ,1) if ( source == btn ) then triggerServerEvent("SetSkin" ,localPlayer ,15) end end ) server addEvent("SetSkin" ,true) addEventHandler("SetSkin" ,root, function (ID) PMoney = getPlayerMoney(source) if PMoney >= 2500 then setElementModel(source ,ID) takePlayerMoney(source,2500) else outputChatBox("U don't have 2500$") end end ) Edited April 7, 2016 by Guest Link to comment
#|_oskar_|# Posted April 7, 2016 Share Posted April 7, 2016 جرب addEventHandler("onGUIClientClick" ,resourceRoot , function () if ( source == btn ) then local SkinID = guiGridListGetItemText(grid ,guiGridListGetSelectedItem(grid) ,1) triggerServerEvent("SetSkin" ,localPlayer ,SkinID ) end end ) Link to comment
#|_oskar_|# Posted April 7, 2016 Share Posted April 7, 2016 جرب addEventHandler("onGUIClientClick" ,resourceRoot , function () if ( source == btn ) then local SkinID = guiGridListGetItemText(grid ,guiGridListGetSelectedItem(grid) ,1) triggerServerEvent("SetSkin" ,localPlayer ,SkinID ) end end ) Link to comment
#|_oskar_|# Posted April 7, 2016 Share Posted April 7, 2016 ما ظبت معي ranks = { {'Army',هنا ايدي الشخصيه}, {'Army',Army}, {'Army',Army} } المفروض تحط ايديهات الشخصيات Link to comment
#|_oskar_|# Posted April 7, 2016 Share Posted April 7, 2016 ما ظبت معي ranks = { {'Army',هنا ايدي الشخصيه}, {'Army',Army}, {'Army',Army} } المفروض تحط ايديهات الشخصيات Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now