Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 20/07/17 in Posts

  1. I was wrong about Head.jpg. The problem is Shader.fx is encoded as UTF-8-BOM, and needs to have the BOM removed. To do this with notepad++: 1) Open Shader.fx in notepad++ 2) Select Encoding->UTF-8 3) Save
    2 points
  2. Thisdp's DirectX Graphical User Interface System ( MTASA 2D+3D DxLIB ) This dxlib provide dx gui functions and events to make it easier to use and alternative to change the style more flexibly. Features: 1. Update Check(DGS will notice you if there is a higher version, and you can choose to ignore it or disable it in the config file) Update Command: "updatedgs" 2. Dx GUI Types: Basic: Window Edit Box Button Grid List Image Scroll Bar Scroll Pane Text Label Tab Panel Detect Area Radio Button Combo Box Check Box Memo 3D Interface 3D Text Browser Switch Button Selector Plugin: Media Browser Color Picker Mask Remote Image QRCode Blur Box Rounded Rectangle Nine Slice Scaling Object Preview Support Canvas Scroll Pane's 3D Effect 3. Edit/Memo rewrite ( You can no longer find the problems in dgs, the problems which exist in cegui) 4. Detect Area is efficient when checking whether your cursor is in a complicated shape. 5. Debug Mode , Command: "debugdgs" 6. You can apply shader to the dxgui ( Compatible with some resources like Objec tPreview ). 7. Include CMD, Command: "dgscmd" ( For more help, please input "help" in the CMD ) 8. Memo/Edit rewritten. 9. Object Oriented Programming Class. 10. Render Target Failure Check ( Warns when there's no enough video memory to create render target ). 11. DGS resembles cegui, you can find the similar feeling when scripting with dgs. 12. 48-hour-response service, your suggestions and bug report will be dealt with in 48 hours ( or less, like 12 hours ? ) 13. Custom Style system 14. Built-in shader plugin 15. More properties 16. Built in multi-language support 17. Simple GUI To DGS (G2D) Notice:Do not close your server or stop the script when it is updating. Wiki: https://wiki.multitheftauto.com/wiki/Dgs ( Still Working In Process ) Auto Completion For N++ (Thanks To Ahmed Ly): http://www.mediafire.com/file/m6dm7815d5dihax/Lua.zip Discord Server: https://discord.gg/QEs8q6W Download DGS : https://github.com/thisdp/dgs Notice: Need acl rights to call fetchRemote/getPlayerIP. If you want to sell your script which involves DGS, please exclude DGS from your price. HurtWorld Backpack Panel(Example) DGS Network Monitor(Built-in)
    1 point
  3. السلام عليكم ورحمة الله وبركاته معليش عالجودة (النت %$#@)ء material designصممته بنمط ال البرمجة كلها بلوا 100% مافي تدخلات بلغات ثانية
    1 point
  4. السلام عليكم ورحمة الله وبركاته نخش بلموضع مطلوب مبرمج تكتيك بمقابل مادي او كونسل skype0550595980 سكايبي ضيف المحدد بلحمر
    1 point
  5. onResourceStart doesnt cover entirely onClientResource but the other way yes. Because onClientResourceStart gets triggered whenever the resource starts for the client ( join and start ). Meanwhile server just starts when its triggered on the server. Answering to your question no.
    1 point
  6. addEventHandler ( "onClientHUDRender", root, function () for _, vehicle in ipairs ( getElementsByType ( "vehicle", root, true ) ) do local posX, posY, posZ = getElementPosition ( vehicle ) local screenX, screenY = getScreenFromWorldPosition ( posX, posY, posZ + 0.5 ) if screenX and screenY then dxDrawText ( "Текст над каждой машиной", screenX, screenY , 400, 200, tocolor ( 255, 255, 255, 255 ), 2, "default-bold" ) end end end )
    1 point
  7. onResourceStart is a server-side event that is triggered when a resource starts. It has nothing to do with a player joining a server. If you want to execute some code when a player joins your server then you should use onPlayerJoin for server-side and onClientPlayerJoin for client-side. On the other hand, onClientResourceStart is a client-side event that is triggered when a client-side script starts. You can have multiple scripts that should run on client side and this event will be called separately for each script. Once again, it has nothing to do with a player joining a server. The name of the event is misleading, onClientScriptStart (Not an event, just my opinion) would have made more sense but since the name of the event is hardcoded in most scripts so it's not an option to change it now. MTA WIKI: This event is triggered when a resource is started. Please note that this is not triggered the same time as the serverside event onResourceStart is. The event is triggered when any clientside resources are started. This means it is triggered when a clientside script is initiated after a download, which includes downloading after join. So: If a resource is running before a player joins, the onClientResourceStart event will be triggered after they join and have downloaded that resource. If a resource is started after a player has joined, the player will be made to download the required files, and then the onClientResourceStart event will be triggered.
    1 point
  8. fadeCamera setTimer spawnPlayer
    1 point
  9. تحتاج شادر اتوقع
    1 point
  10. XXX هذا الفنكشن بس لما الاعب يمشي بالسيارة
    1 point
  11. للاسف لم اتعلم اللغة الصينية من قبل
    1 point
  12. obj = 980 -- غيره لرقم الاوبجكت الي بتركب عليه شكل كنز ... addCommandHandler ("kemo", function (ply, _, mon) if not isGuestAccount(getPlayerAccount(ply)) then if ( isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(ply)), aclGetGroup ( "Console" ) ) ) then if tonumber(mon) then if isElement(themarker) then return end local x, y, z = getElementPosition ( ply ) themarker = createMarker(x, y, z, "corona") object = createObject ( obj, x, y, z ) money = mon playerr = ply outputChatBox("تم انشاء ماركر الكنز",ply) else if isElement(themarker) and isElement(object) then destroyElement(themarker) destroyElement(object) outputChatBox("تم حذف ماركر الكنز",ply) end end end end end ) addEventHandler( "onMarkerHit", root, function(ply) if source ~= themarker then return end if getElementType(ply) == "player" then if playerr == ply then return end givePlayerMoney ( ply, money ) destroyElement(themarker) destroyElement(object) outputChatBox("حصلت على كنز بقيمه : "..money ,ply) end end )
    1 point
  13. مافي بس تقدر تسهل على نفسك استخدامها بهذي الطرييقه for _,r in ipairs(getResources()) do -- جبت كل المودات for _,v in ipairs(getResourceExportedFunctions(r)) do -- جبت الموادات الي فيها export if v == "exportFunction" then -- حددت اسم الـexport exports[getResourceName (r)]:exportFunction(test) -- نفذت الامر end end end قلت افيدك بالطريقه لنه فادتني كثير من ناحيه انه صار عندي حريه اغير اسم المود وانه انفذ الامر اذا موجود باكثر من مود بنفس الوقت وانه ما يجي لي اخطاء في حاله انه المود متوقف ...
    1 point
  14. local timers = {} addEventHandler("onPlayerWasted",root,function() local thePlayer = source if isElement(thePlayer) then exports["rc_core"]:takeMoney(thePlayer,5000) skin = getElementModel(thePlayer) or 0 if isTimer(timers[thePlayer]) then killTimer(timers[thePlayer]) end timers[thePlayer] = setTimer(function() respawn(thePlayer) setElementModel(thePlayer, skin) end, 3000, 1) end end) addEventHandler("onPlayerQuit", root, function() if isTimer(timers[source]) then killTimer(timers[source]) end end)
    1 point
  15. If it says isElementStreamedIn is nil, the script is deffo not set to client side
    1 point
  16. menuPlayers = {} for i = 1, #memberUsernames do menuPlayers[i] = {} menuPlayers[i].name = memberUsernames[i] menuPlayers[i].rank = memberRanks[i] menuPlayers[i].status = memberOnline[i] menuPlayers[i].lastlogin = memberLastLogin[i] menuPlayers[i].active = 0 end Try this
    1 point
  17. شوف تبي الصدق ؟ ض هي خرافية لكن الخلفية مالها علاقة بالـ Material design لازم تختار خلفية مثلا مافيها الوان أكثير خذ خلفية بيضاء وفيها بعض الفقاعات للألوان اللي بتستعملها في الأزرار ولا الإديت وأستخدم خطوط جيدة وـ شوي Bold والله شغلك فنان تقبل مروري ولو تقدر تجي خاص أوريك كم تصميم يمكن يعجبك وتاخد منه ض
    1 point
  18. سوف نعمل على تطوير العمل في الايام القادمة بإذن الله </>
    1 point
  19. TN6EL <33333333 خرافي بس اتوقع مايل شوي لتصميم flat وأفكت الازرار ماهي كفاية material
    1 point
  20. This is a good base resource/proof of concept for shader textures onto vehicle instances; https://forum.multitheftauto.com/topic/96136-rel-texture-replacement-shader-car-wraps-etc/ (because it's what you ask for, "using png" and not replace all of them (for unique vehicle instances) Make sure to read all replies.. inspect the code and fairly simple .fx technique. As you can see by that, you can do alot with LUA and a few simple fx lines. Also maybe @CodyJ(L) can help you out a bit.. and @Ren_712 is a true pioneer with fx/shader scripting within MTA. You can also download some random shader resources from community, and inspect the code. Participating on forums dedicated to fx coding can also help. @Platin - xNikoXD This may be useful: 1) https://gamedevelopment.tutsplus.com/tutorials/a-beginners-guide-to-coding-graphics-shaders--cms-23313 2) https://unity3d.com/learn/tutorials/topics/graphics/gentle-introduction-shaders 3) http://area.autodesk.com/blogs/the-3ds-max-blog/introduction-to-pixel-shaders-using-glsl
    1 point
  21. https://community.multitheftauto.com/index.php?p=resources&s=details&id=11265
    1 point
  22. تحديثات بسيطه للي حابين يعرفون لوين وصلت تم الانتهاء من dxBringToFront dxMoveToBack dxSetVisible dxGetVisible dxCreateButton dxCreateWindow isDXMovedToBack isDXMovedToFront getAllDXAtrr(بوضحها لان اتوقع الباقي مفهم هذي وظيفتها جلب جميع خصائص الالمنت الدي اكس اللي سويته مثل اللون حق الكلام حجم ومقاييس ومكان الالمنت من الشاشه كل شي كتبته في انشاء الالمنت بيرجعلك ثاني بالتفصيل الاتي بيرجعلك هذا اذا ما كان في تحديثات اضافية x y x1 y1 type(نوع الالمنت زر ولا وشو لوحه) dxWindow(لو زر بيرجعلك اللوحه اللي مسوي عليها الزر كالمنت) text name(لاسم الخاص باللوحه اللي هو اول ارقمنت في انشاء اللوحه والازرار وما الى ذلك باختصار الايدي الخاص بالامنت) postgui font fontcolor color fontsize fontpostgui dxResize( يجب ان يكون الدي اكس المنت ظاهر عشان تسويله ريسايز) الايفنت onClientDxClick اللميز بشان الايفينت انك لو مسوي if source==اللوحه اللي عليها الزر then بتشتغل معك طبيعي لكن ان سويت قبلها if source==الزر then ما بيحدث الامر الخاص باللوحه وبيحدث امر الزر اللي على اللووحه فقط مثل الجيو تماما تحديث #1 تم اضافة الى انشاء الوندو sizemain windowcolor وهي عباره عن مربع صغير يحتوي فيه العنوان و size هو حجم المربع كلما كبر رقم size صغر حجم المربع الشكل النهائي لانشاء نافذه mainwindow=dxCreateWindow('main','testbutton121',(screenW - 1052) / 2, (screenH - 612) / 2, 1052, 612, tocolor(0, 0, 0, 199), true,"default",tocolor(0, 0, 255, 255),2,true,tocolor(255, 0, 0, 255),20)
    1 point
  23. كويس بكذا نتعامل مع بعض باذن الله في المستقبل القريب
    1 point
  24. اتعامل مع جميع الكمية 4.5= 30 ريال دولار وزن صافي لي يوصلك
    1 point
  25. Save the timers in a table and set the key to be the player element. When onPlayerQuit fires, check if there's a timer in the table using the source as the key, if so, use killTimer()
    1 point
  26. Store it as so local myFunction function drawTextAbove(source, dText, dFont, dZize, dColor) local dText, dFont, dZize, dColor = dText, dFont, dZize, dColor local dElement = source myFunction = function () dxDrawTextOnElement(dElement ,"Kurisu",1,20,0,0,255,255,1,"arial") end addEventHandler("onClientRender", source, myFunction) end And further to what you're trying to achieve: local myFunction local renderHandler = false addEvent("drawTextForElement", true) addEventHandler("drawTextForElement", getRootElement(), function () if renderHandler then removeEventHandler("onClientRender", source, myFunction) renderHandler = false end drawTextAbove(source, dText, dFont, dZize, dColor) end) function drawTextAbove(source, dText, dFont, dZize, dColor) local dText, dFont, dZize, dColor = dText, dFont, dZize, dColor local dElement = source myFunction = function () dxDrawTextOnElement(dElement ,"Kurisu",1,20,0,0,255,255,1,"arial") end addEventHandler("onClientRender", source, myFunction) renderHandler = true end A better way would be to just make your 'dText' (and such other variables) global, or atleast within the scope of this whole script; then create a named function instead of anonymous one.
    1 point
  27. You need to set the elements collisions enabled. Using setElementCollisionsEnabled(crate,true)
    1 point
  28. كيف حالكم ان شاء الله بخير وطلع فيه اخطاء والى اخره Guieditor Online قبل فترة نزل موضوع عن قبل 3 او 4 ايام تقريبا قررت اسوي واحد ببرنامج الفجوال بيسك ويكون دقيق نوعا ما من ناحية الاحداثيات او الى اخره والنتيجة طلعت كالأتي طبعا اللوحة هذي تختار فيها مقاسات شاشتك باللعبة بحيث راح تفتح لوحة ثانية تصمم فيها وتفتح لك قائمة يوم تضغط كلك يمين ( زي السكربت نفسه ) تختار منها الي تبي تسويه نافذة , زر , الخ (Window) طبعا الي بالرصاصي الي الحين بتشوفونه راح تكون النافذة النتيجة بتكون output وبعد ماتضغط كلك يمين وتظهر لك القائمة وتضغط طبعا الي مسويه حاليا فقط النوافذ والزر والباقي بيكون سهل بأذن الله فـ ابي رأيكم اكمل ولا اكنسل ع الفكرة مع السبب واذا كملت ان شاء الله راح اخليه يدعم الدي اكس ويكون شبيه لحق اللعبة بالضبط اعطونا ارائكم واقتراحاتكم تحت وبالتوفيق للجميع
    1 point
  29. بالتوفيق إن شاء الله احد يشترية
    1 point
  30. ليش رستارت يحبيبي .؟ وكيف تعرف رسمة .؟ المفروض تحط فوق الرسمتين health = getElementHealth( localPlayer ) Armour = getPedArmor( localPlayer ) باختصار كودك بيصير كذا function disabled_item(value) return tocolor(value,value,value) end function Rp() health = getElementHealth( localPlayer ) Armour = getPedArmor( localPlayer ) dxDrawImage(1216, 51, 58, 53, "Files/food.png", 0, 0, 0, disabled_item(255/100*health) , true) dxDrawImage(1216, 126, 58, 53, "Files/thirsty.png", 0, 0, 0, disabled_item((255/100*Armour)), true) end addEventHandler("onClientRender", root,Rp)
    1 point
  31. تم إضافة صوت +علامة عند سقوط الAirdrops عند سقوط الحمولات والحقائب من الطائرة المتحطمة يظهر علامة طائررة + صوت وتم جعلها تسقط كل 35دقيقة
    1 point
  32. It's 2017 mate, MTA is mostly played by uneducated children who don't give a **** about originality or how much you worked on something. https://community.multitheftauto.com/
    1 point
  33. همم الفكرة شوي تحتاج لها خبرات غير البرمجة بنفسها لانك بتستعمل الانميشن كثير واتوقع في طريقة عشان تصنع الانميشن بس ماعرف شلون
    1 point
  34. This is my server. The gui is made by dgs. ( I am bad in design sry)
    1 point
  35. Brilliant server, highly recommend it for any law enforcement roleplay enthusiasts.
    1 point
  36. السلام عليكم , بعد غياب طويل عن البرمجة و كدا قلت ارجع لكم بسكربت جديد , ما اظن حد سواه فكرتي الجديدة Resource Manager المميزات : 1 - تقدر تختار نوع السكربتات الي تجيك في القائمة مثلا ( السكربتات الشغالة - المغلقة - الي فشل تحميلها - المحملة) و 2 - تقدر تشغل السكربت , تقدر تطفي السكربت , تقدر تسوي له رستارت , تقدر تمسحو , + الجديد تقدر تعيد تسميتو 3 - معلومات السكربت , الي مسويه , الأصدار حقو , نوعو , دسكربشن حقو 4 - المود مو مشفر للي يبون يتعلمو Note : المود مسويه مع صديق لي امريكي , نشوف المود صورة : 5 - المود هيكون تحت التطوير , هيكون في اضافات جديدة في الأصدارات الجاية ان شاء الله الأهدائات : 1 - Marshmello 2 - #CroSs 3 - Justboy 4 - Nassor - مبروك الأشراف اخيرا مشرف كويس جه منور , 5 - Me[Z]oO 6 - =x=|Bero|=x= 7- #Default 8 - برستيج 9 - تنطيل 10 - لنفسي الرابط : http://up.top4top.net/downloadf-344oc3hy1-zip.html
    1 point
  37. Well. I've wait the Multi Theft Auto for GTA 3 MTA and MTA VC in 2016/2017 to release to 0.6 But the developer of MTA will not responding after 2009 will the developer to back start the release again or yeah.
    1 point
  38. You can replicate everything that is in VC / LC in SA.
    1 point
  39. And here's another issue: if people don't post their entire script, they have to pick out the relevant parts. Often, people suck incredibly at doing just that, so we end up with something unhelpful.
    1 point
×
×
  • Create New...