Jump to content

#Mr.Rajo~,<

Members
  • Posts

    901
  • Joined

  • Last visited

Everything posted by #Mr.Rajo~,<

  1. هذا الأهبل ما يستاهل يكون سوري هذا مصري ياحول
  2. addCommandHandler ( string commandName, function handlerFunction, [bool restricted = false, bool caseSensitive = true] )
  3. addCommandHandler ( string commandName, function handlerFunction, [bool restricted = false, bool caseSensitive = true] )
  4. السلام عليكم ورحمة الله وبركاته شباب وش احتاج من فنكشنات عشان اسوي قيم مود ومابات للقيم مود ويقدر يتنقل بين المابات لحاله مبدئيا سويت بداية القيم مود وحطيت نوعه بالميتا قيم مود وسويت له ماب لاكن اذا جيت اشغل الماب تطلع شاشه سوداء
  5. السلام عليكم ورحمة الله وبركاته شباب وش احتاج من فنكشنات عشان اسوي قيم مود ومابات للقيم مود ويقدر يتنقل بين المابات لحاله مبدئيا سويت بداية القيم مود وحطيت نوعه بالميتا قيم مود وسويت له ماب لاكن اذا جيت اشغل الماب تطلع شاشه سوداء
  6. شوف امسح اللي بالنوت باد كله وحط هذا بكلاينت ranks = { {'Skin1',1}, {'Skin2',2}, {'Skin3',3} } 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) guiGridListAddColumn(grid, "ID", 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 addEventHandler("onGUIClientClick" ,resourceRoot , function () if ( source == btn ) then local SkinID = guiGridListGetItemText(grid ,guiGridListGetSelectedItem(grid) ,2) triggerServerEvent("SetSkin" ,localPlayer ,SkinID ) end end ) وهذا حطه بسيرفر addEvent("SetSkin" ,true) addEventHandler("SetSkin" ,root, function (ID) PMoney = getPlayerMoney(source) if PMoney >= 2500 then setElementModel(source ,ID) takePlayerMoney(source,2500) outputChatBox("U bought a new skin",source ,255,255,255,false) else outputChatBox("U don't have 2500$",source ,255,255,255,false) end end ) واذا تبي تحط عامود ثالث تسوي بفنكشن setSkins كذا 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) guiGridListSetItemText(grid, Row, 3, v[3], false, false) end end
  7. شوف امسح اللي بالنوت باد كله وحط هذا بكلاينت ranks = { {'Skin1',1}, {'Skin2',2}, {'Skin3',3} } 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) guiGridListAddColumn(grid, "ID", 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 addEventHandler("onGUIClientClick" ,resourceRoot , function () if ( source == btn ) then local SkinID = guiGridListGetItemText(grid ,guiGridListGetSelectedItem(grid) ,2) triggerServerEvent("SetSkin" ,localPlayer ,SkinID ) end end ) وهذا حطه بسيرفر addEvent("SetSkin" ,true) addEventHandler("SetSkin" ,root, function (ID) PMoney = getPlayerMoney(source) if PMoney >= 2500 then setElementModel(source ,ID) takePlayerMoney(source,2500) outputChatBox("U bought a new skin",source ,255,255,255,false) else outputChatBox("U don't have 2500$",source ,255,255,255,false) end end ) واذا تبي تحط عامود ثالث تسوي بفنكشن setSkins كذا 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) guiGridListSetItemText(grid, Row, 3, v[3], false, false) end end
  8. مافهمت ممكن توضح اكثر
  9. مافهمت ممكن توضح اكثر
  10. addEvent("SetSkin" ,true) addEventHandler("SetSkin" ,root, function (ID) PMoney = getPlayerMoney(source) if PMoney >= 2500 then setElementModel(source ,ID) takePlayerMoney(source,2500) outputChatBox("U bought a new skin",source ,255,255,255,false) else outputChatBox("U don't have 2500$",source ,255,255,255,false) end end )
  11. addEvent("SetSkin" ,true) addEventHandler("SetSkin" ,root, function (ID) PMoney = getPlayerMoney(source) if PMoney >= 2500 then setElementModel(source ,ID) takePlayerMoney(source,2500) outputChatBox("U bought a new skin",source ,255,255,255,false) else outputChatBox("U don't have 2500$",source ,255,255,255,false) end end )
  12. حط هذا بسيرفر 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$",source ,255,255,255,false) end end )
  13. حط هذا بسيرفر 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$",source ,255,255,255,false) end end )
  14. عدلته لك فوق
  15. عدلته لك فوق
  16. 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
  17. 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
  18. بدل ID بـــ SkinID مايضر اذا غيرت اسم المتغير بعد استقباله :]
  19. بدل ID بـــ SkinID مايضر اذا غيرت اسم المتغير بعد استقباله :]
  20. --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 )
  21. --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 )
×
×
  • Create New...