Leaderboard
Popular Content
Showing content with the highest reputation on 27/11/16 in all areas
-
Welcome everyone. I want to join the MTA team and make some changes to the MTA source code. Who to contact? How can I start?4 points
-
oh yea about the server and client functions ,i do mix between them a lot ,thank you for noticing i will edit it and contact you with news. now i have added these functions to the server side and triggered it ,now every one can use F1 also it created a bug and now i can't spawn anything -- server part addEvent("onPlayerJoin",true) addEventHandler("onPlayerJoin",g_root, function () if not player then player = source end local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) -- get his account name if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then -- Does he have access to Admin functions? g_PlayerData[player] = { vehicles = {} } g_PlayerData[player].blip = createBlipAttachedTo(player, 0, 2, r, g, b) if g_FrozenTime then clientCall(player, 'setTimeFrozen', true, g_FrozenTime[1], g_FrozenTime[2], g_FrozenWeather) end end end) addEventHandler('onClientResourceStart', g_ResRoot, function() triggerServerEvent("onPlayerJoin", g_root) setTimer(getPlayers, 1000, 1) bindKey('f1', 'down', toggleFRWindow) createWindow(wndMain) hideAllWindows() guiCheckBoxSetSelected(getControl(wndMain, 'jetpack'), doesPedHaveJetPack(g_Me)) guiCheckBoxSetSelected(getControl(wndMain, 'falloff'), canPedBeKnockedOffBike(g_Me)) setJetpackMaxHeight ( 9001 ) triggerServerEvent('onLoadedAtClient', g_ResRoot) end ) and this line got a nil value if i > getOption('vehicles.maxperplayer') then you will find it in your own freeroam resource in line 344 maybe2 points
-
This could be the #1 request of all time and it would be amazing to see this someday. Draw distance is the mayor drawback in MTA. Especially when you have placed so many objects, that it gets decreased below the 300 meter limit.2 points
-
2 points
-
max = 5 function setTeamPolice(player) local police = getTeamFromName("police") if #getPlayersInTeam(police) < max+1 then setPlayerTeam(player,police) end end addCommandHandler("police",setTeamPolice)2 points
-
The MTA codebase is entirely written in C++ with some parts written in inline assembly. The modelinfo array is referenced all across the game_sa and multiplayer_sa code, but Lua does not have direct access to any memory locations. All you can do from Lua is to call C++ functions, which then do something.2 points
-
Tell me what is MTA codebase made of. Is it C++ code or something else as well? I'm thinking about the LUA. Suppose it gets rellocated: .data:00A9B0C8 ; CModelPeds *CModelInfo::ms_modelInfoPtrs[20000] .data:00A9B0C8 _ZN10CModelInfo16ms_modelInfoPtrsE dd 4E20h dup(?) Where would 0xA9B0C8 get referenced? Only in the MTA C++ code, where the value could be found or in the LUA as well? I'm using the Github for Windows and cloning the MTA at the moment.2 points
-
Hello. This resource adds to your server Message Box (Personal Messages). Here's realized new style of sending and getting messages - like in new popular mobile messengers (telegram, for ex). In functionality - replacing theme of menu, and disabling notifications. If you want custom notifications, heres maintenance this resource. Scrolling carried with middle mouse button and by swiping left mouse button (simulation of touch screen). Here some screenes Video (low quality, sorry) Unread messages is colored in dialog list, selected user too. For open settings, click on arrow down on the titlebar, to close settings, click on black part of window Key to open window - F4 (Close - F4 or Round on left-top part) Download: All links lost, try to use google, this project is unsupported by me. Russian file included (client_rus.lua) Thank you, and sorry for my bad english. Topic is closed.1 point
-
السلام عليكم ورحمة الله و بركاته .. اخباركم ان شاء الله بخير يا الاعضاء مجتمع العرب الرسمي .. حبيت اقدم لكم واجهة خفيفه و بسيطة لعيون اصحاب استضافات و مواقع .. طبعا الواجهة مصممه لـ اوبن قيم لاكن تستطيع تركيبها اي مكان .. صورهـ : يوم تضغظ علي زر يتغير + كلام تحت حقوق يكبر و يصغر حركة جميلة جميع الحقوق محفوظة : سعد الغامدي .. مجتمع العرب .. ارجاء عدم نقل الى اي منتدى اخر و شكرآ .. رابط التحميل بمنتدى رسمي : http://www.mtaarabs.com/vb/showthread.php?p=1634#post1634 بتوفيق للجميع ~ ---------------------------------------- - يسرنآ تسجيلك معنآ . http://www.mtaarabs.com/vb/register.php1 point
-
MTASA.com Hosting section needs to be updated. (https://mtasa.com/hosters/) My friend made a mistake trying to buy a €10 MTA Host from delux-host.com. He was charged, but did not receive any mails from host company, neither he can log into his account on the website. I think it would be best for MTA Devs to remove this hosting provider from the list as it is non-functional right now.1 point
-
السلام عليكم ورحمة الله وبركاته موضوعي هذا بيكون عن شي - ( فكرة جديدة يعني ) - سويته وحبيت اشوف رأيكم فيه طبعاً هو شي منوب وسهل بس هدفي منه هو التجربة والتجديد المهم هاذي صور من اللعبة ..................................................................... ..................................................................... ................................................................................................................. فكرة اللعبة انك تتحرك بالأسهم وتاخذ الاشياء اللي تظهر لك وتكسب فلوس - رقم عشوائي وبس ههههههه اتمنى اعرف رأيكم في هذا الشي وهاذي البداية المنوبة ميشان اصنع العاب بنفسي ... رابط التحميل ... ... ملاحظة اللعبة تفتح من اف 2 داخل جراند ... ... اضغط هنا ... ملاحظة : احتمال كبير ما ارد على احد لأني ما افتح كثير متل اول ادعولي اخلص دراستي على خير ترا آخرتها لاب توب هههههه1 point
-
Well as more time passes more scripts get leaked / released therefore people have a lot more to start with. Take roleplay for example, few years ago it was Valhalla Gaming and ShoDown or whatever it's name was which used vG's older script. Now since vG's script was leaked there are :~load of RP servers, both non English and English server and ofcourse quite an amount of those are with inexperienced people as you said it yourself that are mainly in it for the administrator position. And I'm pretty sure that the same goes with the other scripts, more released on community, more tutorials around forums/youtube/internet in general about lua basics or "how to start a server" and boom there you have it.1 point
-
1 point
-
1 point
-
Atom (https://atom.io) UI Theme: Atom Material Theme: Apathy Packages: linter, linter-lua, language-lua1 point
-
Oh sorry I thought you were speaking of the shaders; for the parts yes custom variants may be the case.1 point
-
It works, but it strange. Look, i switch createObject and colCircle and it's true, but it is strange.. I need to create in colshape objects and later check them counts..1 point
-
hello,today i had to learn how make the freeroam (F1) only for ACL admin , but it output a debug notice Error: freeroam\fr_client.lua:1596: attempt to call global 'getPlayerAccount' (a nil value) addEventHandler('onClientResourceStart', g_ResRoot, function() local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) -- get his account name if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then -- Does he have access to Admin functions? fadeCamera(true) setTimer(getPlayers, 1000, 1) bindKey('f1', 'down', toggleFRWindow) createWindow(wndMain) hideAllWindows() guiCheckBoxSetSelected(getControl(wndMain, 'jetpack'), doesPedHaveJetPack(g_Me)) guiCheckBoxSetSelected(getControl(wndMain, 'falloff'), canPedBeKnockedOffBike(g_Me)) setJetpackMaxHeight ( 9001 ) triggerServerEvent('onLoadedAtClient', g_ResRoot) end end ) thank you for reading ,1 point
-
1 point
-
1 point
-
Oh sorry, I made a typo, there was an "and" before the "then". function customMeCommand(message, messageType) local playerName = getPlayerName(source) local message = string.gsub(message, "#%x%x%x%x%x%x", "") if not isPedDead(source) then if messageType == 1 then cancelEvent() outputChatBox("** " .. playerName .. " " .. message .. "", getRootElement(), 192, 162, 216, true) end end end addEventHandler("onPlayerChat", getRootElement(), customMeCommand) Try now please.1 point
-
You are mixing up client side and server side functions so much. #1: onClientResourceStart is obviously a client sided event but --> #2: getAccountName is a server sided function. So, you must do the whole script server side I guess, I'm not sure what do you want to do, but if you want to get the account name of the player you must do it server side. #3: Who is thePlayer? You must define it somewhere and somehow on server side, on client side you can simply just use localPlayer in some scenarios. #4: On server side you must specify the player whose camera you want to be faded. So you can't just use fadeCamera(true), instead you must use fadeCamera(thePlayer, true), in this case thePlayer is the player. #5: On server side, if you are triggering an event from client side, you must obviously use triggerClientEvent, not triggerServerEvent. #6: You can't use gui or draw functions on server side, and I assume that you did because of the createWindow() and hideAllWindows() functions, you must use triggerClientEvent for that. #7: Is g_ResRoot defined somewhere? Client Scripting Functions Client Scripting Events Server Scripting Functions Server Scripting Events1 point
-
1 point
-
normal report /report in the panel i wan't when a player takes a screenshot and type /report in he report panel it has screenshot the player can click on screenshot and veiw it and send report1 point
-
1 point
-
Loading something in render means that the load happens about 36 times (default fps cap), in one minute there will be 2.160 elements loaded. Loading them when switching means that probably the shaders will get loaded 0-4 times per GAME... but if you get crazy and spam the switch, how many objects will be loaded? While in a case like the render one it's critical, in you case is more like a "right" thing to do After spamming a bit, how many elements are owned by your resource (in performanceBrowser)? EDIT: i also noticed that you are destroying in unloadTile the vars tile.shader and tile.texture... but i can't find where they are created. Also you are not destroying the shaders in the shaders table. Is it possible that the problem was partially caused by that?1 point
-
Yes, check your previous comments on what fastman is now trying to achieve, to see where this is about; (also check https://bugs.multitheftauto.com/view.php?id=9368)1 point
-
نتشرف فيك وفي الجميع وحياك الله معنا بالنسبة لمشكلتك تم اضافة ستايل / واضافة لتفعيل استايل الجوال عند دخول المنتدى من الجوال تلقائياً نتمنى تبلغنا اذا فية مشاكل هنا او هناك شكراً لك نتمنى لكم اطيب الاوقات معنا1 point
-
Don't mind my C# behaviour lol I was wrong here. Didn't ever look this up for LUA so now I know. We learn everyday I guess1 point
-
From the wiki: Note: This function can not set more than <maxplayers> as defined in mtaserver.conf. Using https://wiki.multitheftauto.com/wiki/SetServerConfigSetting might work.1 point
-
1 point
-
Good. It shouldn't be that hard then. I'll continue tommorow.1 point
-
_outputChatBox = outputChatBox function outputChatBox( text, visibleTo, r, g, b, colorCoded ) _outputChatBox("Robot: "..text, visibleTo, r, g, b, colorCoded) end outputChatBox( "test" ) I always thought it would have thrown an error, thank you!1 point
-
I'd advise against TortoiseSVN, there's no need for it. Probably something like GitHub for Windows is much easier to get up and running. This guide has more or less everything you need to know: https://wiki.multitheftauto.com/wiki/Compiling_MTASA There's really more much to developing on a large project than simply applying patches. MTA's codebase is very large in nature, and there are likely to be some integration challenges involved as well as harmonizing with our own coding standards. Good luck.1 point
-
Thanks for replies. At the moment I only want to make the MTA compatible with the FLA. Some addresses are reallocated and the C++/ASM code will have to be altered. I need to learn how to use a Github and make changes to the MTA project, submit changes to it. I'm using Visual Studio 2015. fastman92 limit adjuster1 point
-
That's right because the definition of an MTA contributor/developer (someone who actively develops our codebase) is different from MTA team, which is a title you get by broad recognition that only the devs who play(ed) a key role in making MTA what it is /those who lay MTA's foundation have (not of added value while developing for MTA). As a contributor, which you're looking for to become, you can create pull requests with your patches/feature implementations. Your chances to ever get any official status such as on forums depend on your own performance, if you become well known for your good quality code and judgement/self-review capabilities (realiably and structurally knowing how stable and desired certain patches are) you could be granted commit rights to cut the code review by other developers. While you're at it you can be granted additional tools and statuses if required for your assignments. (Especially don't take this literally, I'm just trying to draw an image for you of how it works here) Any current ''MTA Team'' or ''Contributor'' member around here has walked through this whole chain of reputation and recognition building which takes time, and is very informal (not needed to actually develop for MTA or contribute code as mentioned before) The conclusion: you're already part of a team if you start contributing code, and being formally part of it attachs zero value, if you deserve it over time it'll get to you and as you advance some groups such as Contributor until (theoretically) MTA team it only increases your recognition/honour. fastman92 by the way you're widely known within the GTA:SA modder community so you do have experience with GTA mechanics, which is of immense added value to developing MTA. Currently we can use some developer manpower and if you want to improve MTA utilizing your present skills you're very much welcome (as any contributor would be though, skilled with GTA internals already or not)1 point
-
Hi! Thank you for taking an interest in contributing to our project. Multi Theft Auto: San Andreas is an Open Source software, so anyone who feels confident in C++ (and/or possibly other utility languages we use) can contribute to the code base. A good start would be to check out our project page at GitHub, or more specifically - our README: https://github.com/multitheftauto/mtasa-blue/blob/master/README.md. After giving that a read, you might want to read our Coding Guidelines as well (which are also mentioned in the README): https://wiki.multitheftauto.com/wiki/Coding_guidelines. These guidelines explain the structure of our code, how to write your code so it can be accepted by us, and what you should try to focus on when submitting your first patches/pull requests to us, amongst other things. Having read both of these, you should get the general idea of how this project operates. Now, to answer the rest of your questions: You do not need to be a MTA Team member in order to submit your code to us. You have to be registered on GitHub though (don't worry, it's completely free of charge) and should know how to use Git. Obviously, you will be listed as an author of any code you contribute to us (provided that we accept it). You can find a list of our developers here: https://forum.multitheftauto.com/staff/, (ones with a Godfather (The MTA Team) rank, although not everyone is active), but you do not need to contact anyone individually per se (unless it's a confidential question eg. regarding a security issue). If you have any other questions then feel free to ask. Good luck.1 point
-
1 point
-
Finished OceanView Hotel *New Vegetation *New Model *New Textures *Original Interior (Will change asap when i will find a good texture)1 point
-
احس البعض لو عليه بيحذف الامثله من الويكي ويجلس يتفلسف ويقول تعلم من نفسك ترا كود ماركر بسيط يقراه ويفهمه جاهز ويفهم كيف اكواد اللعبه كيف تشتغل والمشكلة نص الي متعلمين هنا كذا بدايتهم يفتح مودات مو مشفره ويقرا ويعدل لين فهم , ويوم احترف قام يتفلسف ويقول لا تعطوا جاهز Lua لغة الجافا سكربت الي تعتبر اصعب من lua فهمت الاساسيات وبديت اتعلم عليها وافهمها اسهل من بسبب المدرسين والمبرمجين الي يعطوا امثله توصل لبناء موقع كامل ويقلك كيف لو تبي تسوي الشي الفلاني و يعلمك طريقة تفكيره وانت تبدا تبحر وتتعمق الفكره باللي يبي يتعلم والي ما يبي يتعلم ماله دخل الكود جاهز ولا مو جاهز الي يبي يتعلم بيتعلم والي ما يبي مالنا دخل فيه . انت اذا خايف ع المبتدئ ومسوي تبي تطلع ناس مبرمجين ويتطوروا تقدر تنصحه انه لا تعتمد ولا ترجع لطلب كود او تقرا كود جاهز من اي مود الا بعد ما تحاول مره واثنين وثلاث الى ما تفقد الامل واذا ضبط معك الكود تبدا تقارنه بكودات ثانيه وهو حر عاد يسوي النصيحه ولا لا . كلام طالع من قلب1 point
-
We could trial a "Question / Answer" system which is designed for this. The idea here is that you pick the best answer and the forum automatically marks it as resolved.1 point
-
1 point
-
MTA'nın 1.5 versiyonu, bizlere yeni olasılıklar getirmeye devam ediyor, genellikle 'browser' üzerine yapılan değişiklerin tüm listesi aşağıdadır. ana değişiklikler; MTA'ya gömülü bir internet tarayıcısı anayüzü eklendi. yeni 'browser' fonksiyonlarıyla kontrol edilip değiştirilebilir. Işıklandırma fonksiyonları eklendi. client yenilikleri ve değişiklikleri; -Enabled low fragmentation heap for XP to reduce memory allocation problems. -32 bit işletim sistemi kullanan kullanıcıların yaşadığı kopuklukları ve çökmeleri gidermek için otomatik TXD boyutlandırma eklendi. -dxCreateFont fonksiyonuna 'kalite' parametresi eklendi. -Video ayarları sekmesine 'görüş açısı' özelliği eklendi. -Added support for multiple render targets in shaders. -Konuşma kutusunda yazarken oyuncu rumuzlarını tamamlamak için tab'a basarak otomatik isim tamamlama eklendi. -Serverside ped'ler client'lerle senkronize edildi. -Mermiler için senkronizasyon sorunu giderildi. Mermilerin yerel oyuncuya internet kesikliği yüzünden hasar verememesi düzeltildi. sunucu yenilikleri ve değişiklikleri; -Sunucu kapatıldığında çıkış mesajı ekleyebilme özelliği eklendi. Yeni fonksiyon listesi ve tüm değişikler için ana kaynak olarak şuraya bakabilirsiniz; https://wiki.multitheftauto.com/wiki/Changes_in_1.51 point
-
Cezanın kalkması için beklemen gerekiyor. Ayrıca yöneticiye mail ve mesaj attığın için daha da kızdırmışsın adamı. Biraz sabredip beklemek en iyisi şu anda senin için1 point