Jump to content

abu5lf

Members
  • Posts

    2,193
  • Joined

  • Last visited

Everything posted by abu5lf

  1. مايحتاجها أبداً
  2. @TD[M]ER That's already posted Solidsnake14.
  3. حطه setElementData( tCars[thePlayer], "tCan", true ) element data يمديك تختصرها بدون فيه جدولين ليه ؟
  4. الفجوال بيسك ماله دخل في برمجة المودات
  5. https://wiki.multitheftauto.com/wiki/Cli ... _functions
  6. setTimer( function( ) for _, aVehicle in next, getElementsByType 'vehicle' do if isElementInWater( aVehicle ) then setElementPosition( aVehicle, 1650.54077, -1626.85131, 24.89843 ) end end end, 5000, 0 )
  7. الكود معك فوق وانت عارف وش الي يخفي النافذة حطه بالزر وجرب .
  8. https://community.multitheftauto.com/
  9. طيب ملف الماب الي داخل المود كيف يصنع؟؟ وياليت ثاني مرة توضح فيه فرق بين المود والملف
  10. عندك فاصلة ناقصة في كود الماركر حط هذا بداله : marker = createMarker( -4222.97949, -2997.52490 , 379.22849, 'cylinder', 70, 0, 0, 0, 0 )
  11. شغال معي الكود كلنت تأكد من عندك
  12. marker = createMarker( 0, 0, 0 ) function onMarker( player ) if player == localPlayer then if eventName == 'onClientMarkerHit' then toggleControl( 'fire', false ) elseif eventName == 'onClientMarkerLeave' then toggleControl( 'fire', true ) end end end addEventHandler( 'onClientMarkerHit', marker, onMarker ) addEventHandler( 'onClientMarkerLeave', marker, onMarker )
  13. toggleControl( 'fire', false ) -- تعطيل اطلاق النار toggleControl( 'fire', true ) -- تمكين اطلاق النار
  14. GUIEditor_Window = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(250,128,321,319,"",false) guiSetVisible( GUIEditor_Window[1], false ) GUIEditor_Grid[1] = guiCreateGridList( 9,23,303,283, false, GUIEditor_Window[1] ) guiGridListSetSelectionMode( GUIEditor_Grid[1], 2 ) guiGridListAddColumn( GUIEditor_Grid[1], 'Skins', 0.80 ) aSkins = { --[[{ 'Name Skin', ID Skin };]] { 'Skin`1', 46 }; { 'Skin`2', 47 }; { 'Skin`3', 48 }; } for _, aSkin in ipairs( aSkins )do local gRow = guiGridListAddRow( GUIEditor_Grid[1] ) guiGridListSetItemText( GUIEditor_Grid[1], gRow, 1, tostring( aSkin[ 1 ] ), false, false ) guiGridListSetItemData( GUIEditor_Grid[1], gRow, 1, tostring( aSkin[ 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_Skin = tonumber( guiGridListGetItemData( GUIEditor_Grid[1], iRow, 1 ) ) if ID_Skin ~= '' then setElementModel( localPlayer, ID_Skin ) guiSetVisible( GUIEditor_Window[1], false ) showCursor( false ) end end end, false ) Marker1 = createMarker( 1467, -1012, 28, '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 )
×
×
  • Create New...