Jump to content

^iiEcoo'x_)

Members
  • Posts

    2,935
  • Joined

  • Last visited

  • Days Won

    44

Everything posted by ^iiEcoo'x_)

  1. addCommandHandler( '1' , function( ) if ( fileExists( 'test.txt' ) == false ) then file = fileCreate( 'test.txt' ) else file = fileOpen( 'test.txt' , true ) end fileWrite( file , 'testtesttest' ) text = fileRead( file , fileGetSize( file ) ) fileClose( file ) outputChatBox( text ) end )
  2. حط تحت سطر ٤ كذا outputChatBox ( tostring ( file ) )
  3. وظيفة بسيطة و مفيدة , وظيفة إنشاء تنبيه باللوحة , CreateAttentionBox = function ( Window , Text , RedLabel , GreenLabel , BlueLabel , AlphaLabel , PropertyBox , AlphaBox , TimerSecond ) assert ( Window , 'Bug @ #1 CreateAttentionBox ; No Window' ) assert ( isElement ( Window ) , 'Bug @ #1 CreateAttentionBox ; This is not Element' ) assert ( getElementType ( Window ) == 'gui-window' , 'Bug @ #1 CreateAttentionBox ; This is not gui window' ) assert ( Text , 'Bug @ #2 CreateAttentionBox ; No Text !' ) assert ( type ( Text ) == 'string' , 'Bug @ #2 CreateAttentionBox ; Not String' ) local Table = { RedLabel = RedLabel or 255 , GreenLabel = GreenLabel or 255 , BlueLabel = BlueLabel or 255 , AlphaLabel = AlphaLabel or 255 , PropertyBox = PropertyBox or 'tl:FFA30000 tr:FFA30000 bl:FFA30000 br:FFA30000' , AlphaBox = AlphaBox or 255 , TimerSecond = TimerSecond or 4 } Box = guiCreateStaticImage ( 10 , 19 , guiGetSize ( Window , false ) - 20 , 21 , ':guieditor/images/dot_white.png' , false , Window ) guiSetProperty ( Box , 'ImageColours' , Table.PropertyBox ) guiSetAlpha ( Box , Table.AlphaBox ) guiSetProperty ( Box , 'AlwaysOnTop' , 'True' ) Label = guiCreateLabel ( 10 , 0 , guiGetSize ( Window , false ) - 20 , 21 , Text , false , Box ) guiLabelSetHorizontalAlign ( Label , 'center' , false ) guiLabelSetVerticalAlign ( Label , 'center' ) guiLabelSetColor ( Label , Table.RedLabel , Table.GreenLabel , Table.BlueLabel , Table.AlphaLabel ) setTimer ( function ( Box , Label ) destroyElement ( Label ) destroyElement ( Box ) end , 1000 * Table.TimerSecond , 1 , Box , Label ) end - لازم مود الجيوإدتور يكون شغال .. مثال :
  4. @maximumdrive https://wiki.multitheftauto.com/wiki/Vehicle_Components NOTES: Unknown Component is all that what give "false" when i try move it. Changing wheel position on Z axis doesn't work.
  5. 'onVehicleStartEnter' getVehicleDoorState createObject attachElements
  6. Hi , Can I shoot during a normal jump or exrta jump? Such as "Fortnite"
  7. اظن في قوس ناقص + هو يرجع سترنق ما في داعي تسوي تو سترنق
  8. setElementProperty - bool: Returns false if the weapon property was unable to be set
  9. جميل , إنت الخطيف ؟ أفضل لاعب ببطولة حرب القروبات الرمضانية ؟ ولا واحد ثاني ؟
  10. if ( getPlayerTeam ( Player ) == getTeamFromName ( 'Police' ) ) then end + تحقق من - localPlayer
  11. ما حد رح يفيدك بخصوص أي طلب بالحياة الواقعية , تحياتي .
  12. لازمك مستوى ممتاز , تحيآتي .
×
×
  • Create New...