Jump to content

abu5lf

Members
  • Posts

    2,193
  • Joined

  • Last visited

Everything posted by abu5lf

  1. + onClientGUIClick
  2. abu5lf

    root

    source: هو مصدر الحدث root: element او player لجميع العناصر سواء كانت . ( ويستخدم في الأحداث للتعبير عن جميع العناصر ) ه
  3. + onClientGUIClick هو يبيها بزر ماقال يوم تضغط الزر موجود في مثال الويكي . local isChatVisible = true -- let's assume the chat is visible function chat ( key, keyState ) if isChatVisible then -- if it's on showChat ( false ) -- turn it off isChatVisible = false else showChat ( true ) -- if it's off isChatVisible = true -- turn it on end end bindKey ( "i", "down", chat ) -- the player's "i" key will toggle the chat
  4. كود فتح النافذة من ماركر مهب لازم تسوي كود سيرفر وكلنت
  5. showChat - موجود في المثال .
  6. بس انت لو لاحظت الصورة يوم تضغط على info كانه مثل التآب يب هذا اول ماتضغط على الصورة يظهر الاشياء كأنهه تاب . onClientGUIClick - كلها ب أستخدام هذا الحدث guiSetVisible - ل أخفاء شيء
  7. الكودين الي فوق كلها خطأ aCars = { { 'Befalow', 411 }; -- مسوي جدولين في بعض عشان تسهل اضافة السيارات للقريد { 'Car', 581 }; } for _, aCar in ipairs( aCars )do local gRow = guiGridListAddRow( GUIEditor_Grid[1] ) -- اللوب راح يكرر مرتين راح يسوي صفين يعني على عدد الجدول guiGridListSetItemText( GUIEditor_Grid[1], gRow, 1, tostring( aCar[ 1 ] ), false, false ) guiGridListSetItemData( GUIEditor_Grid[1], gRow, 1, tostring( aCar[ 2 ] ) ) end خليتني أرد وحذفت ردك :@
  8. onClientGUIClick - هذا الحدث عند الضغط على الصورة والنافذة مهب بس الزر .
  9. انا اعرفها لكن هذي ماراح تحقق فائدة ابدا في الكود هذا gRow = guiGridListAddRow( GUIEditor_Grid[1] ) guiGridListSetItemText( GUIEditor_Grid[1], gRow, 1, tostring( aCars[ 1 ][ 1 ] ), false, false ) يعني لو تبي تسويها بهذي الطريقة راح تكرر الكود على كل سيارة تضيفها اللوب يختصر لك
  10. ماراح يضيف شيء
  11. جب الصور وسوها مثل الشكل الي في الصورة واي صورة تضغط عليها يظهر لك الي تبيه
  12. شكرا تيتي على التجربة ولكن المشكلة مهيب هنا for _, aCar in ipairs( aCars )do local gRow = guiGridListAddRow( GUIEditor_Grid[1] ) guiGridListSetItemText( GUIEditor_Grid[1], gRow, 1, tostring( aCars[ 1 ] ), false, false ) guiGridListSetItemData( GUIEditor_Grid[1], gRow, 1, tostring( aCars[ 2 ] ) ) end في اللوب انا حاط aCar ويوم جيت اضيف النص للقريد حطيت aCars P.S: انا معدل كود الشخصيات الي فوق عشان كذا نسيت + تم تعديل ردي .
  13. + setClipboard
  14. GUIEditor_Window = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(275,125,292,313,"",false) guiSetVisible ( GUIEditor_Window[1] , false ) GUIEditor_Grid[1] = guiCreateGridList(9,23,274,281,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"vehicles",0.2) aCars = { { 'Befalow', 411 }; } for _, aCar in ipairs( aCars )do local gRow = guiGridListAddRow( GUIEditor_Grid[1] ) guiGridListSetItemText( GUIEditor_Grid[1], gRow, 1, tostring( aCar[ 1 ] ), false, false ) guiGridListSetItemData( GUIEditor_Grid[1], gRow, 1, tostring( aCar[ 2 ] ) ) end addEventHandler( 'onClientGUIDoubleClick', GUIEditor_Grid[1], function( ) local iRow, iCol = guiGridListGetSelectedItem( GUIEditor_Grid[1] ) if( iRow and iCol and iRow ~= -1 and iCol ~= -1 )then local ID_Car = tonumber( guiGridListGetItemData( GUIEditor_Grid[1], iRow, 1 ) ) if ID_Car ~= '' then triggerServerEvent( 'BB', localPlayer, ID_Car ) guiSetVisible( GUIEditor_Window[1], false ) showCursor( false ) end end end, false ) Marker1 = createMarker( 0, 0, 4, 'arrow', 2.5, 0, 0, 255, 150 ) addEventHandler( 'onClientMarkerHit', Marker1, function( hitPlayer ) if hitPlayer == localPlayer then guiSetVisible( GUIEditor_Window[1], true ) showCursor( true ) end end ) اذا ماضبط المشكلة من كود السيرفر اطرحه .
  15. outputChatBox
  16. كان يمديك تعطيني الكود ب الخاص addEventHandler("onClientRender",root, function( ) dxDrawText("زورونا على: [url=https://www.facebook.com/BAHRINSMOOD?fref=ts]https://www.facebook.com/BAHRINSMOOD?fref=ts[/url]",13.0,818.0,1131.0,861.0,tocolor(192,192,192,255),3.0,"default-bold","left","top",true,false,false) end )
  17. أطرح كودك وقل وش تبي تسوي . غير كذا ماراح تلقى مساعدة
  18. ??? وش دخل المساعدة في أني اعرف ولا معرف .
  19. ورني الكود . او أستخدم tocolor
  20. Your code works fine.
  21. addCommandHandler( 'text', function(_, _, ... ) outputChatBox ( table.concat( {...}, ' ' ), getRootElement( ), 255, 255, 255, true ) end ) /text msg
  22. abu5lf

    [HELP] problem

    You're welcome.
  23. # - get length of table. You're welcome.
  24. aPos = { { 0, 0, 0 }; { 10, 10, 10 }; } local aX, aY, aZ = unpack( aPos[ math.random( 1, #aPos ) ] )
  25. abu5lf

    [HELP] problem

    Copy code again.
×
×
  • Create New...