Jump to content

The Don

Members
  • Posts

    241
  • Joined

  • Last visited

Everything posted by The Don

  1. The Don

    DxPanel

    hmmm try this windowstate = true bindKey("F1","down", function () if windowstate == true then guiSetVisible(buttons, true) addEventHandler("onClientRender", root, dxPanel) showCursor(true) windowstate = false else guiSetVisible(buttons, false) removeEventHandler("onClientRender", root, dxPanel) showCursor(false) windowstate = true end end )
  2. The Don

    DxPanel

    function open() if (guiGetVisible (buttons) == false) then guiSetVisible(buttons, true) addEventHandler("onClientRender", root, dxPanel) showCursor(true) else guiSetVisible(buttons, false) removeEventHandler("onClientRender", root, dxPanel) showCursor(false) end end bindKey ("F1", "down", open)
  3. -- Client addEventHandler("onClientGUIClick",root, function() if source == Nitro then triggerServerEvent("nitroPickup", localPlayer) local sound = playSound("pickup.mp3") setSoundVolume(sound, 0.5) end end ) --Server addEvent("nitroPickup", true) addEventHandler("nitroPickup", root, function ( ) if getPlayerMoney(source) >= 1000 then if isPedInVehicle(source) then addVehicleUpgrade(getPedOccupiedVehicle(source),1010) takePlayerMoney(source,1000) else outputChatBox ("You're poor m8",source,255,0,0) end end end )
  4. showCursor(true) local screenW, screenH = guiGetScreenSize() addEventHandler("onClientRender", root, function () dxDrawRectangle(screenW * 0.2875, screenH * 0.3783, screenW * 0.4375, screenH * 0.0933, tocolor(0, 0, 0, 200), false) dxDrawText("360 noscope button", screenW * 0.3625, screenH * 0.4050, screenW * 0.6687, screenH * 0.4550, tocolor(255, 255, 255, 255), 2.00, "default-bold", "left", "top", false, false, false, false, false) end ) addEventHandler ( "onClientClick", root, function ( Button, State, ScreenX, ScreenY ) if ( ScreenX >= screenW * 0.2875 and ScreenX <= screenW * 0.2875 + screenW * 0.4375 and ScreenY >= screenH * 0.3783 and ScreenY <= screenH * 0.3783 + screenH * 0.0933 ) then outputChatBox ( "360MLG Noscope has been clicked",255,0,0 ) end end ) there is no errors but the problem that if i clicked i see the message in the chat twice like this 360MLG Noscope has been clicked 360MLG Noscope has been clicked can any one tell me what i should do
  5. https://community.multitheftauto.com/ind ... ls&id=7668 https://community.multitheftauto.com/ind ... ls&id=6615
  6. add the script in admin group resource.scriptname
  7. The Don

    Question!!??

    You can't. if you are an admin use this command /chgpass and tell his new password
  8. small example i hope you get the idea addCommandHandler ('data', function () setElementData ( localPlayer , "DataCheck",true ) end ) addCommandHandler('data2', function () if getElementData ( localPlayer , "DataCheck") == true then outputChatBox('Data Checked') else outputChatBox('Data not checked') end end ) and check the wiki
  9. ذا مثال كلنت اتمنى انك تفهمه addCommandHandler ('data', function () setElementData ( localPlayer , "DataCheck",true ) end ) addCommandHandler('data2', function () if getElementData ( localPlayer , "DataCheck") == true then outputChatBox('Data Checked') else outputChatBox('Data not checked') end end )
  10. شكلك عدلت عليه وجبت العيد او انك حملته من مكان ثاني ومعدل غلط https://forum.multitheftauto.com/viewtopic.php?f=108&t=83045 ذا الرابط الاصلي ^
  11. للي ما يعرف https://forum.multitheftauto.com/viewtopic.php?f=13&t=29363 برنامج ميزته تحمل صفحات موقع ولما يطفي او شي زي كذا يمديك تتصفح كانك بدون انترنت حملته وركبته وحملت صفحات الويكي ض1 احتياط النت بيخلص بعد كم فتره
  12. onClientRender ما ينفع لانه كذا تسوي تكرر لـ guiSetText في كل جزء من الثانيه عشان كذا لاق جرب غيره الى onClientResourceStart
  13. تفضل عدلت لك الكود --[[ // DX 3D Texts By : 彡ṔĄ!И ( version : 1.0 ) / Script : client.lua --------------------------------------------- // Visit Us At : [url=http://www.Gta-Arabs.net]http://www.Gta-Arabs.net[/url] ^^ --]] -- making a table with allowed fonts' names local fonts = { [ "default" ] = true, [ "default-bold" ] = true,[ "clear" ] = true,[ "arial" ] = true,[ "sans" ] = true, [ "pricedown" ] = true, [ "bankgothic" ] = true,[ "diploma" ] = true,[ "beckett" ] = true }; function dxDraw3DText( text, x, y, z, scale, font, r, g, b, alpha, maxDistance ) -- checking required arguments assert( type( text ) == "string", "Bad argument @ dxDraw3DText" ); assert( type( x ) == "number", "Bad argument @ dxDraw3DText" ); assert( type( y ) == "number", "Bad argument @ dxDraw3DText" ); assert( type( z ) == "number", "Bad argument @ dxDraw3DText" ); -- checking optional arguments if not scale or type( scale ) ~= "number" or scale <= 0 then scale = 2 end if not font or type( font ) ~= "string" or not fonts[ font ] then font = "default" end if not r or type( r ) ~= "number" or r < 0 or r > 255 then r = 255 end if not g or type( g ) ~= "number" or g < 0 or g > 255 then g = 255 end if not b or type( b ) ~= "number" or b < 0 or b > 255 then b = 255 end if not alpha or type( alpha ) ~= "number" or alpha < 0 or alpha > 255 then alpha = 255 end if not maxDistance or type( maxDistance ) ~= "number" or maxDistance <= 1 then maxDistance = 12 end local textElement = createElement( "text" ); -- checking if the element was created if textElement then -- setting the element datas setElementData( textElement, "text", text ); setElementData( textElement, "x", x ); setElementData( textElement, "y", y ); setElementData( textElement, "z", z ); setElementData( textElement, "scale", scale ); setElementData( textElement, "font", font ); setElementData( textElement, "rgba", { r, g, b, alpha } ); setElementData( textElement, "maxDistance", maxDistance ); -- returning the text element return textElement end -- returning false in case of errors return false end addEventHandler( "onClientRender", root, function( ) local texts = getElementsByType( "text" ); if #texts > 0 then local pX, pY, pZ = getElementPosition( localPlayer ); for i = 1, #texts do local text = getElementData( texts[i], "text" ); local tX, tY, tZ = getElementData( texts[i], "x" ), getElementData( texts[i], "y" ), getElementData( texts[i], "z" ); local font = getElementData( texts[i], "font" ); local scale = getElementData( texts[i], "scale" ); local color = getElementData( texts[i], "rgba" ); local maxDistance = getElementData( texts[i], "maxDistance" ); if not text or not tX or not tY or not tZ then return end if not font then font = "default" end if not scale then scale = 2 end if not color or type( color ) ~= "table" then color = { 255, 255, 255, 255 }; end if not maxDistance then maxDistance = 12 end local distance = getDistanceBetweenPoints3D( pX, pY, pZ, tX, tY, tZ ); if distance <= maxDistance then local x, y = getScreenFromWorldPosition( tX, tY, tZ ); if x and y then dxDrawText( text, x, y, _, _, tocolor( color[1], color[2], color[3], color[4] ), scale, font, "center", "center" ); end end end end end ); local x,y,z = getElementPosition ( localPlayer ) dxDraw3DText("تجربه", x,y,z , 2 , "default",255,255,0,255,200) وفيه مثال تجريبي على الشفافيه في اخر السكربت
  14. He upload it in the site https://community.multitheftauto.com/in ... s&id=11612
  15. https://community.multitheftauto.com/in ... ls&id=7613 مثال -- Client dxDraw3DText = exports["3d_dx_texts"]:dxDraw3DText("Text Name",x,y,z) وي ريت تبحث قبل ما تسوي موضوع لان موضوعك كثير نزلو الشباب حتى في القسم الاجنبي
  16. Button = guiCreateButton(487, 473, 153, 64, "", false) guiSetAlpha(Button, 0.00) showCursor ( true ) function DxDraw () dxDrawText("Password :", 478, 413, 558, 441, tocolor(18, 212, 8, 255), 1.60, "default", "left", "top", false, false, false, false, false) dxDrawImage(0, 0, 1360, 768, "1.png", 0, 0, 0, tocolor(209, 202, 202, 255), false) dxDrawLine(456 - 1, 184 - 1, 456 - 1, 563, tocolor(30, 195, 7, 77), 1, false) dxDrawLine(917, 184 - 1, 456 - 1, 184 - 1, tocolor(30, 195, 7, 77), 1, false) dxDrawLine(456 - 1, 563, 917, 563, tocolor(30, 195, 7, 77), 1, false) dxDrawLine(917, 563, 917, 184 - 1, tocolor(30, 195, 7, 77), 1, false) dxDrawRectangle(456, 184, 461, 379, tocolor(255, 255, 255, 77), false) dxDrawText("Username :", 472, 305, 552, 333, tocolor(18, 212, 8, 255), 1.60, "default", "left", "top", false, false, false, false, false) dxDrawText("Password :", 478, 375, 558, 403, tocolor(18, 212, 8, 255), 1.60, "default", "left", "top", false, false, false, false, false) dxDrawText("Register", 555, 170, 799, 250, tocolor(18, 212, 8, 255), 5.00, "default", "left", "top", false, false, false, false, false) dxDrawText("Panel", 666, 226, 799, 275, tocolor(18, 212, 8, 255), 3.00, "default", "left", "top", false, false, false, false, false) dxDrawLine(456, 269, 916, 269, tocolor(18, 212, 8, 255), 5, false) dxDrawRectangle(727, 473, 152, 64, tocolor(250, 250, 250, 86), false) dxDrawRectangle(488, 472, 152, 64, tocolor(250, 250, 250, 86), false) dxDrawText("Back", 727, 472, 879, 537, tocolor(18, 212, 8, 255), 3.00, "default", "center", "center", false, false, false, false, false) dxDrawText("Register", 488, 472, 640, 537, tocolor(18, 212, 8, 255), 3.00, "default", "center", "center", false, false, false, false, false) end addEventHandler ("onClientGUIClick", root, function () if source == Button then addEventHandler("onClientRender", getRootElement(), DxDraw) con = guiCreateEdit(585, 411, 253, 31, "", false) end end ) واستخدم destroyElement اذا تبي تتطير الاديت
  17. http://ffsgaming.com/threads/8888-Shader-Moving-Arrows
  18. addEventHandler('onClientGUIClick',root, function () if source == NameButtonElement then -- اسم الزر Edit = guiGetText ( NameEditElement ) -- اسم الاديت outputChatBox ( Edit ) end end ) الرد الثاني شارب شي
  19. ابحث قبل ما تسوي موضوع https://forum.multitheftauto.com/viewtop ... 60&t=80611
  20. اعتقد قصدك زي كذا addEventHandler('onPlayerChat',root, function(msg) if string.find(msg,'***') then kickPlayer ( source, "كلام ممنوع" ) cancelEvent() else outputChatBox("Server: " .. getPlayerName( source ) .. "#ff0000 " .. msg, root, 231, 255, 10, true) end end )
  21. The Don

    DELETE THIS

    best way to protect your files is this
  22. https://community.multitheftauto.com/in ... ils&id=267 https://community.multitheftauto.com/in ... ls&id=5539 https://community.multitheftauto.com/in ... s&id=10497 and there is more just search dude.
  23. كسرت رقمي القياسي وكسرت الرقم القياسي حق اماراتي 200 الف بنق هههههههههههههه
×
×
  • Create New...