-
Posts
2,193 -
Joined
-
Last visited
Everything posted by abu5lf
-
+ 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
-
كود فتح النافذة من ماركر مهب لازم تسوي كود سيرفر وكلنت
-
showChat - موجود في المثال .
-
بس انت لو لاحظت الصورة يوم تضغط على info كانه مثل التآب يب هذا اول ماتضغط على الصورة يظهر الاشياء كأنهه تاب . onClientGUIClick - كلها ب أستخدام هذا الحدث guiSetVisible - ل أخفاء شيء
-
الكودين الي فوق كلها خطأ 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 خليتني أرد وحذفت ردك :@
-
onClientGUIClick - هذا الحدث عند الضغط على الصورة والنافذة مهب بس الزر .
-
انا اعرفها لكن هذي ماراح تحقق فائدة ابدا في الكود هذا gRow = guiGridListAddRow( GUIEditor_Grid[1] ) guiGridListSetItemText( GUIEditor_Grid[1], gRow, 1, tostring( aCars[ 1 ][ 1 ] ), false, false ) يعني لو تبي تسويها بهذي الطريقة راح تكرر الكود على كل سيارة تضيفها اللوب يختصر لك
-
جب الصور وسوها مثل الشكل الي في الصورة واي صورة تضغط عليها يظهر لك الي تبيه
-
شكرا تيتي على التجربة ولكن المشكلة مهيب هنا 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: انا معدل كود الشخصيات الي فوق عشان كذا نسيت + تم تعديل ردي .
-
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 ) اذا ماضبط المشكلة من كود السيرفر اطرحه .
-
كان يمديك تعطيني الكود ب الخاص 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 )
-
أطرح كودك وقل وش تبي تسوي . غير كذا ماراح تلقى مساعدة
-
??? وش دخل المساعدة في أني اعرف ولا معرف .
-
Your code works fine.
-
addCommandHandler( 'text', function(_, _, ... ) outputChatBox ( table.concat( {...}, ' ' ), getRootElement( ), 255, 255, 255, true ) end ) /text msg
-
# - get length of table. You're welcome.
-
aPos = { { 0, 0, 0 }; { 10, 10, 10 }; } local aX, aY, aZ = unpack( aPos[ math.random( 1, #aPos ) ] )