Jump to content

Nickelz

Members
  • Posts

    239
  • Joined

  • Last visited

Recent Profile Visitors

981 profile views

Nickelz's Achievements

Trick

Trick (18/54)

0

Reputation

  1. addEventHandler
  2. نسيت احط التحقق حق الصوت , بس الكود حقي يخليك تحط السرعة اللي تبيها , مو شرط 0 أو 50 أو 100
  3. -- #Client function soundSpeed( ) local Scroll = guiScrollBarGetScrollPosition(Scroll) local Speed = Scroll / 100 setSoundSpeed(SoundURL, Speed) end addEventHandler("onClientGUIScroll", getRootElement(), soundSpeed)
  4. طيب بـ أخلاق ... guiSetAlpha(getControl(wndMain, 'kill'), 0.7)
  5. اشرح وش بتسوي بـ الضبط؟
  6. الالفا من صفر الى واحد مو واحد او صفر guiSetAlpha(btn, 0) -- مخفي guiSetAlpha(btn, 1) -- ظاهر
  7. عندك أخطاء في الكود, عدلتها كلها GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(441, 128, 622, 484, "BY IIwantedII", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(20, 43, 592, 80, "RAIN", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "clear-normal") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF0929F0") GUIEditor.button[2] = guiCreateButton(9, 161, 603, 92, "FOG", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF0633F5") GUIEditor.button[3] = guiCreateButton(10, 269, 602, 92, "SUNNY", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFF2F505") GUIEditor.button[4] = guiCreateButton(22, 384, 590, 90, "DUST", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF0929F0") end ) function OpenWin() if guiGetVisible(GUIEditor.window[1]) then guiSetVisible(GUIEditor.window[1], false) showCursor(false) else guiSetVisible(GUIEditor.window[1], true) showCursor(true) end end bindKey("F2", "down", OpenWin) addEventHandler ("onClientGUIClick", getRootElement(), function () if ( source == GUIEditor.button[2] ) then setWeather ( 9 ) outputChatBox("WEATHER CHANGED TO FOGGY !!!") end end )
  8. guiSetAlpha(guiElement, alpha) -- guiElement = اسم الزر أو اللوحة -- alpha = 0 OR 1
  9. Nickelz

    dx زر

    Use this function : function isMouseInPosition(x, y, width, height) if ( not isCursorShowing( ) ) then return false end local sx, sy = guiGetScreenSize( ) local cx, cy = getCursorPosition( ) local cx, cy = ( cx * sx ), ( cy * sy ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end local x, y, w, h = 1021, 21, 27, 24 dxDrawRectangle(x, y, w, h, tocolor(0, 0, 0, 200), true) -- Create DX button dxDrawText("X", 1021, 21, 1048, 45, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, true, false, false) -- Create DX text addEventHandler ( "onClientClick", root, -- Event function (_, state ) -- Function if ( state == "down" ) then -- If ( the state of the button was down ) then if ( isMouseInPosition(x, y, w, h) ) then -- If ( your mouse is in the correct postion ) then -- Functions end -- End if end -- End if end -- End function )
  10. addEventHandler("onClientResourceStart",root ,function() local x,y = guiGetScreenSize() img = guiCreateStaticImage(x/2-300, y/2-300,650,600, "img.png", false) setTimer (guiSetVisible,100000,1,img,false) end)
  11. setCameraTarget( getLocalPlayer() ) --Client
  12. DX اذا تبي للـ استخدم طريقتي, مجربة
  13. الطريقة اللي دايم استخدمها, احسن طريقة بـ النسبة لي sX, sY = guiGetScreenSize() function() wnd = guiCreateWindow( (sX/1366)*483, (sY/768)*330, (sX/1366)*423, (sY/768)*117, "", false ) end --1366, 768 = مقاس شاشتك -- 1366x768
  14. حاول تقرا اكواد كثيير وتفهم منها طريقة استخدام الفنكشنات وترتيب الكود Client Functions Client Events Server Functions Server Events
  15. https://wiki.multitheftauto.com/wiki/AR/ ... 8%AC%D9%87
×
×
  • Create New...