Jump to content

#Soking

Members
  • Posts

    1,439
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by #Soking

  1. هوا بالفعل يظهر اسماء السيارات وهو يشيل الرو من المعرض لك بس لانك اشتريت سياره نقل الرو ولا انت بدك تشتري مليون سياره نفس النوع ض1
  2. لو تبي تستخدم الشيك بوكس , وتبي تحدد واحد من الاثنين فقط استخدم دي الطريقه الغبيه addEventHandler('onClientGUIClick',root, function ( ) if ( source == GUIEditor.CheckBox[1] ) then guiCheckBoxSetSelected( GUIEditor.CheckBox[2], false ) guiCheckBoxSetSelected( GUIEditor.CheckBox[1], true ) end if ( source == GUIEditor.CheckBox[2] ) then guiCheckBoxSetSelected( GUIEditor.CheckBox[1], false ) guiCheckBoxSetSelected( GUIEditor.CheckBox[2], true ) end end )
  3. addEventHandler('onClientGUIClick',Yourbutton, function ( ) if ( guiRadioButtonGetSelected(GUIEditor.RadioButton[1]) == true ) then guiGridListClear( GridList ) local Row = guiGridListAddRow( GridList ) guiGridListSetItemText( GridList, Row, Colmn,'1 Card',false,false) elseif ( guiRadioButtonGetSelected(GUIEditor.RadioButton[2]) == true ) then guiGridListClear( GridList ) local Row = guiGridListAddRow( GridList ) guiGridListSetItemText( GridList, Row, Colmn,'STC',false,false) end end , false ) بدل Yourbutton بالزر حقك , + استخدم مثل ماقلت لك الراديو افضل
  4. العفو اخوي انصحك تستخدم guiCreateRadioButton افضل ,
  5. outputChatBox("#FFFF00* [RentSysteam]: "..guiGetText (edittag).." ", 255, 0, 0, true) GUIEditor = { RadioButton = {} } local screenW, screenH = guiGetScreenSize() Window = guiCreateWindow((screenW - 355) / 2, (screenH - 328) / 2, 355, 328, "Test", false) guiWindowSetSizable(Window, false) guiSetVisible(Window,false) GridList = guiCreateGridList(9, 32, 336, 236, false, Window) local Colmn = guiGridListAddColumn(GridList, "Column", 0.9) GUIEditor.RadioButton[1] = guiCreateRadioButton(12, 290, 123, 15, "1 Card", false, Window) GUIEditor.RadioButton[2] = guiCreateRadioButton(154, 290, 123, 15, "STC", false, Window) addEventHandler('onClientGUIClick',root, function ( ) if ( source == GUIEditor.RadioButton[1] ) or ( source == GUIEditor.RadioButton[2] ) then if ( guiRadioButtonGetSelected(GUIEditor.RadioButton[1]) == true ) then guiGridListClear( GridList ) local Row = guiGridListAddRow( GridList ) guiGridListSetItemText( GridList, Row, Colmn,'1 Card',false,false) elseif ( guiRadioButtonGetSelected(GUIEditor.RadioButton[2]) == true ) then guiGridListClear( GridList ) local Row = guiGridListAddRow( GridList ) guiGridListSetItemText( GridList, Row, Colmn,'STC',false,false) end end end ) addCommandHandler('Open', function ( ) guiSetVisible(Window,not guiGetVisible(Window) ) showCursor( guiGetVisible(Window) ) end )
  6. سسويتت بعض الاشياء جرب المود والاكواد التبيها خدها منه ماكملته يعني ماحطيت زر تصليح و ماسويت SQL للجريد ليست تفضل جرب + في اف11 بتحصل علامه Client = VehiclesID = { 602, 545, 496, 517, 401, 410, 518, 600, 527, 436, 589, 580, 419, 439, 533, 549, 526, 491, 474, 445, 467, 604, 426, 507, 547, 585, 405, 587, 409, 466, 550, 492, 566, 546, 540, 551, 421, 516, 529, 592, 553, 577, 488, 511, 497, 548, 563, 512, 476, 593, 447, 425, 519, 520, 460, 417, 469, 487, 513, 581, 510, 509, 522, 481, 461, 462, 448, 521, 468, 463, 586, 472, 473, 493, 595, 484, 430, 453, 452, 446, 454, 485, 552, 431, 438, 437, 574, 420, 525, 408, 416, 596, 433, 597, 427, 599, 490, 432, 528, 601, 407, 428, 544, 523, 470, 598, 499, 588, 609, 403, 498, 514, 524, 423, 532, 414, 578, 443, 486, 515, 406, 531, 573, 456, 455, 459, 543, 422, 583, 482, 478, 605, 554, 530, 418, 572, 582, 413, 440, 536, 575, 534, 567, 535, 576, 412, 402, 542, 603, 475, 449, 537, 538, 441, 464, 501, 465, 564, 568, 557, 424, 471, 504, 495, 457, 539, 483, 508, 571, 500, 444, 556, 429, 411, 541, 559, 415, 561, 480, 560, 562, 506, 565, 451, 434, 558, 494, 555, 502, 477, 503, 579, 400, 404, 489, 505, 479, 442, 458, 606, 607, 610, 590, 569, 611, 584, 608, 435, 450, 591, 594 } PositionMarker = { { 2088.12, 1517, 10.82 }, } function guiGridListGetSelectedItemText ( gridList, column ) local item = guiGridListGetSelectedItem ( gridList ) local text = guiGridListGetItemText ( gridList, item, column or 1 ) if ( text ~= '' ) then return text else return false end end function SetPanelVisible( Panel , Stats ) guiSetVisible(Panel,Stats) showCursor(Stats) end for _, MarkerCreate in pairs( PositionMarker ) do local xPos, yPos, zPos = MarkerCreate[1], MarkerCreate[2], MarkerCreate[3] Marker = createMarker(xPos, yPos, zPos-2,'cylinder',2,255,255,255) addEventHandler('onClientMarkerHit',root, function ( hPlayer ) if ( source == Marker ) and ( hPlayer == localPlayer ) and ( not isPedInVehicle(hPlayer) ) then SetPanelVisible( GUIEditor.window[1] , true ) end end ) addEventHandler('onClientMarkerLeave',root,function ( hPlayer ) if ( source == Marker ) and ( hPlayer == localPlayer) then SetPanelVisible( GUIEditor.window[1] , false ) end end ) end setBlipVisibleDistance( createBlipAttachedTo(Marker,55) , 1000 ) GUIEditor = { gridlist = {}, window = {}, button = {} } GUIEditor.window[1] = guiCreateWindow(246, 166, 285, 370, "Vehicle Panel", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) VehShopGrid = guiCreateGridList(9, 21, 265, 150, false, GUIEditor.window[1]) local colm = guiGridListAddColumn(VehShopGrid, "Vehicles", 0.9) guiGridListClear (VehShopGrid) for _, v in pairs( VehiclesID ) do if getVehicleNameFromModel(v) ~= "" or nil then guiGridListSetItemText (VehShopGrid,guiGridListAddRow (VehShopGrid),colm,getVehicleNameFromModel(v), false, false ) end end YourB = guiCreateButton(9, 175, 134, 30, "Buy", false, GUIEditor.window[1]) YourGrideList = guiCreateGridList(9, 211, 265, 149, false, GUIEditor.window[1]) guiGridListAddColumn(YourGrideList, "Vehicles Me", 0.9) GUIEditor.button[2] = guiCreateButton(156, 175, 119, 30, "Close", false, GUIEditor.window[1]) addEventHandler("onClientGUIClick",GUIEditor.button[2],function ( ) SetPanelVisible( GUIEditor.window[1] , false ) end , false ) addEventHandler("onClientGUIClick",YourB, function ( ) if ( getElementData(localPlayer,'VehicleMe') or 0 ) < 10 then if ( guiGridListGetSelectedItem(VehShopGrid ) ~= -1 ) then local Row, TextGride, xPos, yPos, zPos = guiGridListAddRow ( YourGrideList ) , guiGridListGetSelectedItemText(VehShopGrid ,colm ) ,getElementPosition(localPlayer) guiGridListSetItemText ( YourGrideList, Row, colm, TextGride, false, false ) local Vehicle = getVehicleIDFromName(TextGride) triggerServerEvent('CreateTheCar',localPlayer,Vehicle,xPos,yPos,zPos) guiGridListRemoveRow(VehShopGrid,guiGridListGetSelectedItem(VehShopGrid)) SetPanelVisible( GUIEditor.window[1] , false ) outputChatBox(getVehicleNameFromID(Vehicle) ) else outputChatBox("Error ",255,0,0) end else outputChatBox('لا يمكنك شراء اكثر من 10 سيارات',255,255,255) end end , false ) -- لتصفير الداتا لشراء سيارات كثيره addCommandHandler('Remove',function ( ) setElementData(localPlayer,'VehicleMe',0) end ) Server = Vehicles = { } addEvent('CreateTheCar',true) addEventHandler('CreateTheCar',root, function( Vehicle, xPos,yPos,zPos ) if ( getElementInterior(source) == 0 ) and ( getElementDimension(source) == 0 ) then Vehicles[source] = createVehicle(Vehicle ,xPos, yPos+1, zPos+1) warpPedIntoVehicle(source,Vehicles[source]) setElementData(Vehicles[source], "Owner", true ) setElementData(source,'VehicleMe',(getElementData(source,'VehicleMe') or 0 ) + 1 ) end end )
  7. بما اني مافهمت ولا شي من كلامك خلينا نختصر , قولي وش تبي تسوي وانا بساعدك
  8. int guiGridListAddRow ( element gridList ) مافي للفنكشن دا غير ارقمنت واحد مثال : local NameGrideList = guiCreateGridList ( 0.80, 0.10, 0.15, 0.60, true ) local column = guiGridListAddColumn( NameGrideList, "Player Name", 0.85 ) addEventHandler("onClientGUIClick",Soking, function () if ( guiGridListGetSelectedItem(NameGrideList ) ~= -1 ) then local Row = guiGridListAddRow ( NameGrideList ) guiGridListSetItemText ( NameGrideList, Row, column, getPlayerName ( localPlayer ), false, false ) else outputChatBox("Error ",255,0,0) end end , false )
  9. Row1 = guiGridListAddRow(PVGrid,1) شسلفة الكود حقك دا ؟ ههههههههههههههههههههههههههههههههههههههههههههههههه
  10. addEventHandler("onClientGUIClick",BVB, function () if ( guiGridListGetSelectedItem(VehShopGrid) ~= -1 ) then triggerServerEvent("onBuyCar",localPlayer,guiGridListGetItemText(VehShopGrid,sel,1),guiGridListGetItemText(VehShopGrid,sel,2),guiGridListGetItemData(VehShopGrid,sel,1),guiGridListAddRow(PV.Grid,sel,1)) else outputChatBox("# Error : Please Choose A Vehicle To Buy.",255,0,0) end end , false )
  11. وضح , انت وش تبي تسوي ليه ماتحط EditBox ? وضح فكرتك يمكن اساعدك
  12. ماعتقد كود بسيط مثل دا بيستهلك موارد خادم كامل
  13. #Soking

    طلب

    وش تقصد بالـ " قروب " ؟ تقصد مود العصابات الـ Group System ? ولا قصدك قروب في الاسل ؟
  14. أستخدمم, مايخلي ملفات الكلينت تتحمل , + ملفات السيرفر ماتظهر لو في مشكلة كلمني
  15. في الحالتين الكود شغال
  16. addEvent("lockCar",true) addEventHandler("lockCar",root, function ( ) if ( isPedInVehicle(source) ) then if ( isVehicleLocked(getPedOccupiedVehicle(source) ) ) then setVehicleLocked(getPedOccupiedVehicle(source) ,false) outputChatBox("*تم فتح السيارة بنجاح",source,0,255,0,false) else setVehicleLocked(getPedOccupiedVehicle(source) ,true) outputChatBox("*تم غلق السيارة بنجاح",source,0,255,0,false) end end end ) addEventHandler("onClientGUIClick",lock, function ( ) triggerServerEvent("lockCar",localPlayer) end , false )
  17. set = يحط get = يجيب مثال addCommandHandler('setLevel', function ( Plr ) setElementData(Plr,'Level',0) outputChatBox( getElementData(Plr,'Level') , Plr , 255, 255 ,255 ,true) end ) Plr = تعريف لان لو سويت source في الادد كومند مابيتعرف Level = اسم الداتا 0 = القيمه و يطلع بالشات كم لفل معاك
  18. [1] = سببت تاثير بالمود ؟؟
  19. لآخفاء الوحه = guiSetVisible(GUIEditor.window[1],false) للانتقلات = addEventHandler('onClientGUIClick',root, function ( ) if ( source == button ) then setElementPosition(localPlayer,x,y,z) elseif ( source == button1) then setElementPosition(localPlayer,x,y,z) end end )
  20. function ( ) for _,v in ipairs ( getElementsByType("player") ) do setElementPosition(v,x,y,z) end end Table = { {'Youseef'}, {'TAPL'}, {'Sokin'}, {'Tete'} } function ( ) for _,v in ipairs ( Table ) do outputChatBox( v[1] ) end end
  21. فكره رائعه بصراحهه انسان مبدع
  22. بنفز الفكرة بس سؤال , اقدر افتح الشنطه ؟ في فنكشن يعني
×
×
  • Create New...