Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/08/17 in Posts

  1. Changelog 0.6: Zombies fixed. Fight against three zombie types: Walkers, Runners and Brutes. Map blips added for all players; base blips properly refresh now. Player faction changes when repeatedly killing friendlies. NPC chatter fixed (won't show up for all players on server anymore) Help screen moved to [F1]. Additional emotes added: [1] to [0]. Loot drop added for all NPCs, based on faction and category. Player's equipment drops on death. Gamemode goal added (preliminary implementation) During nightime (21 PM to 9 AM) walkers are faster. Use Zombokleen to cure infection, Splint to cure fractures, Adrenaline for a boost. Zombokleen is an experimental drug, so by design it will give unexpected results sometimes. 30+ items added. Deploy four types of traps: Mines, Spikestrips, Shards and Incendiary. New weapons added: Magnum Revolver, Agent Green Canister, Timed Bomb, Flashbang, Rocket Launcher. Weapon attachments: Zip Line, M37 Stomper and Laser Pointer. Use EM Scanner to locate peds and vehicles or steal a Surveillance Van to do whole neighbourhood scans. Game manual added, press [F9]. R01 Gunship implemented. Over 400 vehicle spawns added. Extensive map additions: a dense forest in Flint County (props @Essle) a new trash and wrecked vehicles layer, also interiors in the game world for many shops. Proof of concept implementation of vehicle weapons, strongboxes and karma.
    2 points
  2. To post a topic in the Scripting section your topic should meet the following requirements: It must contain specific questions about either: the code you will include that is problematic or you are asking direct support for, or asking for help in finding the best approach to achieve something. For example, asking more experienced scripters if there is a more efficient way of coding your desired script/function. The contents of the topic must focus around code support or coding methods. It needs to follow the Formatting guidelines and Conduct guidelines listed below. This section is not for: (resource) progress show-off, recruiting scripters, or polling interest or brainstorming on what kind of project you are up to next All of the above things have their own categories to post them in. These categories are respectively: https://forum.multitheftauto.com/forum/87-resources/ https://forum.multitheftauto.com/forum/149-looking-for-staff/ https://forum.multitheftauto.com/forum/140-mta-chat/ If you still post such a topic in the Scripting section mistakenly, the first time it will get moved gracefully to the correct section. Any subsequent repeated mistakes may result in an instant deletion of your topic. Formatting guidelines It would be highly appreciated if you tag your topics appropriately and use proper topic titles. Although this is not a hard requirement, it helps to maintain overview. Use the following template for this: [BUG] TOPIC_TITLE - for problematic code that will not work or has issues that you need assistance with. This type of topic must always contain a code snippet of the script in question. Most of the times, you will need to provide the entire script. [QUESTION] TOPIC_TITLE - scripting questions, including (but possibly not limited to): asking for help in understanding scripting principles, function or code usage, or if you wonder whether your approach to achieve something is the most optimal and efficient one. We are all learning and aid from more experienced scripters can be useful. Use code snippet tags. Always add your code (if applicable) in this uniform way. Click the ''< >'' shortcut in the text editor, as seen in below screenshot: Then put your code within the box that said button (< >) creates. Be sure to select Lua for highlighting from the drop-down list in bottom right corner for automatic syntax colouring, wiki links for built-in functions and events and other cool features. Please do not use loose [ code] tags for the sake of readability. Do not mass-quote code snippets, or else it would fill up the whole topic with repeats of the same code over and over again. Remove the code column from a previous quote before posting or limit your own quote by narrowing down the parts of code you are replying about. Quote selectively. Advice Last but not least, please try to explain your issue or question the best way you can. A clean and detailed topic can increase the chance that someone will sit down to analyse your problem and actually help you. Clear communication and description is also the key to attracting scripters who may potentially take a look for you. Note that a common request is to "post the full script" and that isn't without reason - problems often go deeper than you think (or the issue is structural / architectural of nature) and other scripters will find it difficult to help you debug or trace it without having a good picture of everything. Especially with questions regarding bugs or something not working as it's supposed to, you may have low or non-existent outreach from others if you're not providing full code. Similarly, also keep in mind posting screenshots (or lines) from debugscript, errors or warnings, that include the line number, you will need to number any script code you provide in your topic to ensure others can intepret it and find the corresponding erroring lines. Code of Conduct Treat everyone with respect, no matter their skill in scripting. If someone posts what you think is low level/''stupid'', remember that you have once been there as a novice scripter yourself and everyone should have a chance to learn. Instead of resorting to humiliating replies, think about how hard it is to learn how to script efficiently, and dedicate yourself even more to help them understand it. You might play a noticeable role in someone's future as MTA scripter (or who knows, maybe an even more prominent role later on too). Long story short, avoid making remarks or rude comments aimed at someone's skill level, incapabilities, etc. It is not appreciated neither by us Moderators nor by regular users of the forums. The Scripting section is not meant for those unwilling to learn, whose only intent is to try get others to finish the scripts they need, line by line. We see this happening way too often - someone with seemingly zero scripting skills does not react on-topic to the set of functions they can use that other users provide them, and does not seem to take any pushes in the right direction forward; they are just waiting for a collective effort from other scripters to develop what they want. This is what we do not want to see. Do not expect all the work to be done for you while you lean back. You should at least try to script it by yourself - users on this subforum are generally happy to help in any particular issue you come across while coding. If you see someone who keeps bumping their topic that is clearly oriented at letting his work be done by others, then please report the post. The bumping policy in scripting section is a bit different from other forum sections, because scripting topics serve as a sort of knowledge-base for those dealing with the same issue/question as described in existing topics. It is often suggested (and usual practise for many scripters) that prior to posting a new topic, someone searches the forums to see if their question has been asked/answered before. Therefore, you may bump old topics if you're certain your approach or solution/code is better than other posted answers, and if it's a fairly common question (not someone just asking how to have their own code fixed or similar case-specific topics). However, we the moderating team may still review if your posts are really useful bumps with new insights, and even if so, we can lock the topic to prevent derailing of an old topic/continuous posts. So expect your useful bumps to possibly be the last ever made in a certain topic (which means if you do it, do it well). If you believe a popular topic for a really common scripting problem should be unlocked for you to post input, or you wish to improve upon someone's earlier bump after which it was locked, then please use the Report button referring to this part of the regulations. No support is offered for leaked code or scripts (even if they only partially originate from a leak) and such topics will be locked and trashed on sight. If you notice a topic where something related is being asked, or other clandestine requests (such as questions how to decompile scripts, etc, anything with not-so-noble intentions) then please report the topic and do not reply as it may incite unnecessary arguments. Mention the source proving that it is a leaked code within your report, though you can omit that if you feel that it is fairly obvious that the resource/script was leaked. In the latter case however, keep in mind that we may not be aware of such a leak, so the Moderator who handles your report will have to take his judgement upon it if you do not provide evidence. Still, keep in mind that you should not openly accuse users who post pieces of your (or someone else's) code as per https://forum.multitheftauto.com/topic/46410-stolen-resource-accusations/. If this happens, simply report such posts. Failure to abide by the Code of Conduct may result in a forum punishment. If you notice anything that violates the Code of Conduct, please report those posts instead of enforcing the rules yourself. It just takes a few seconds, but greatly benefits the Section and makes it a better place to seek help from.
    1 point
  3. Business System Current Features [v1.3.1]: Creating business ingame with GUI DX texts and image on marker, containing info Business window, containing info and actions Payout, when you create a business you specify payout and payout time Bank, payout go to the bank, you can deposit and withdraw Managment, you can set name, owner, cost, bank and destroy Moving DX messages for info messages, check the screenshots When the resource stops, timers for payout are saved, loaded on start, and completed, meaning, if payout is every 1 hour, resource stopped and there was 20 minutes left, it's saved and on start the payout timer time is 20 minutes Version Check, when the resource starts, it will check if a new version is released, and will inform business admins, of new versions Uses SQLite or MySQL for saving, newest functions provided by MTA Fully written in OOP Change Log: Version 1.1: Fixed few bugs. Improved update check. Added setting to hide the info shown on the marker. Now when you sell a business, you get the money in the bank. [*]Version 1.2: New moving dxOutput, old one was hideous. Fixed blip staying after business destroyed bug. DB functions use callbacks now, thanks to Arran for telling me. [*]Version 1.3 Fully rewritten in OOP New directx user interface with the dxGUI library Can now use MySQL or SQLite [*]Version 1.3.1 Revert to CEGUI Fix info messages not being output Notes: Use /business to open Create Business GUI. There is settings in the meta for Info message type, marker color, inform player for payout, key to open business GUI, blip id, maximum number of owned businesses, hiding the info shown on the marker. Adding the resource to admin group, is necessary for version checks. Screen Shots: Download GitHub Repo Any Ideas, bugs, questions please post them. If you want to edit something and failed, post and I will help you. I'm out of ideas for the resource, if you have any, please post them.
    1 point
  4. Howdy fellas, one of SAPD:FR Online's long term members that was through all of it's development stage (FR:MP, 7Precint and now SAPD:FR Online) has just recently uploaded a gameplay video from in game so I figured you could take a look at it. Credits: Unit23OnPatrol You may see a bit of bugs with the AI / NPCs in the video but it's nothing that won't be solved in the future.
    1 point
  5. Vehicles = { [468] = true,[577] = true }; function enterVehicle ( player, seat, jacked ) if ( Vehicles [ getElementModel ( source ) ] ) then ssPlayer = source; setTimer ( function ( ) warpPedIntoVehicle ( player, ssPlayer ); end, 50, 1 ); cancelEvent ( ); end; end; addEventHandler ( "onVehicleStartEnter", root, enterVehicle );
    1 point
  6. It wouldn't be such a good idea, use elementdata or accountdata, or at last, you can use a database.
    1 point
  7. It's pretty stable to use it to create UI's. We have some cool stuffs done like this, and they don't really cause low fps/lags.
    1 point
  8. You can't check the progress outside of the timer. Run your head through the code if you don't understand it totally. Progress_Window = {} function clientResourceStart( ) Progress_Window = guiCreateWindow(0.25, 0.9, 0.55, 0.05, "Testing Progress", true) guiWindowSetSizable(Progress_Window, false) guiSetProperty(Progress_Window, "CaptionColour", "FFFF0000") somebar = guiCreateProgressBar( 0.01, 0.4, 1, 1, true, Progress_Window ) if ( somebar ) then setProgress = setTimer(function() guiProgressBarSetProgress(somebar, progress+10) progress = guiProgressBarGetProgress(somebar) if (progress) >= (tonumber (100)) then guiSetProperty(Progress_Window, "CaptionColour", "FF00FF00") killTimer(setProgress) end end, 2000, 10) else outputChatBox ("Something went wrong!") end end addEventHandler( "onClientResourceStart", resourceRoot, clientResourceStart) --Sorted that Check this.
    1 point
  9. The one on top is the first element, the second is the first element's child etc.
    1 point
  10. الأن سكربت fpsRP للمواقع , قم بعرض محتوى سيرفرك عبر موقعك مثال حي http://fpsserver.com/fpsRP السيرفر : 164.132.106.152:22479 يمكنك شراءه الأن بسعر رخيص 10$ مدى الحياة , والتركيب مجاني. قم بأضافتي عبر سكايب : fpsserver المميزات : الأحصائيات العامة , أغنى الشخصيات , صفحة لكل شخصية يوجد بها معلومات عنه , دليل التليفونات لكل شخصية , عرض كل شخصيات , عرض كل المركبات الدي يمكنك شرائها داخل سيرفر واسعارها.
    1 point
  11. الســلام عليكم ورحمة الله وبركاتة اليــوم جايبلكم تجميعة اشكال طرق المابات المشهورة 8558/3458 وهذي بعض الصور طبعآ تجميعة الأشكال هذي جايبها من موقع اجنبي نجي للشــرح التركــيب على المابـــات اول شي تحميل الملف الي فيه الأشكال https://up.top4top.net/downloadf-587le2ob1-zip.html : التحميل TXD ثم نفتح الملف راح تشوف صور وملفات تشوف الشكل الي يعجبك من الصور ثم تاخذ الملف حقه ( طبعآ الملف راح يكون تحت الصورة ) تطلع الملف الي يعجبك لسطح المكتب او اي مكان ثم تغــير اسمه الى 8558 وتاخذ شكل ثاني وتغير اسمه وتخليه 3458 يصير بهذا الشكل : وراح تلقى في ملف الأشكال ملف بأسم road.lua تطلعه مع الملفين الي طلعناهم قبل شوي يصير معانا كذا : تنســخ الثلاث ملفات هذي وتروح لملف المـــاب حقــك وتلصـــقه في ملف الماب (الحين باقي شي واحد) meta.xml ترجع لملف الأشكال وراح تشوف ملف تفتحه وتنســخ <file src="8558.txd" /> <file src="3458.txd" /> <script src="road.lua" type="client"></script> تروح لملف الميتا حق الماب وتفتحه </settings> وتلصقه تحت كلمة وتحفظ الميتا وتجرب الماب هذا وشوف كيف راح يتغير شكل طريق 8558/3458 والســـلام عليكـــم ___________
    1 point
  12. اشكال حلوة نوعاً ما لكنك قاعد تشرح بس حتى انت مو محمل برنامج التكسد الي يعدل عالصور فكيك قاعد تشرح؟ شوف الفيديو وهذي تصاميم تستفيد منها شوف الموقع https://3dlancer.net/en/freetextures بالتوفيق.
    1 point
  13. You can use getElementChildren for this function.
    1 point
  14. addEventHandler("onClientGUIClick",resourceRoot, function() if ( source == removeserial ) then selected = guiGridListGetSelectedItem(GridBan) if selected ~= -1 then data = guiGridListGetItemText(GridBan, selected,1) triggerServerEvent("removeserial",localPlayer,data) guiGridListRemoveRow (GridBan,selected) end end end) This should do it I think.
    1 point
  15. 1 point
  16. Hi @Zorgman! I've been struggling with the same problem, but I've tried something that might help you. I have not succeeded yet, and I am a scripting beginner, so take this with a grain of salt. You can use setPedAnimation whenever a player with a silenced is shooting/aiming/walking. Specify the path to the animation table that contains the rifle's animations, and you should be golden. Like I said I haven't been able to successfully incorporate this in my own server yet, but maybe you will find a way to do it Good luck!
    1 point
  17. Is it not removing the row? Btw, if you remove the row before getting the data out of it, the data will be different than it is supposed to be.
    1 point
  18. المرة جاية انتبه فكما قال وايفاي في كلماته العظيمة كان معك الاستاد ماركو انتهى الدرس انصرااف
    1 point
  19. وعليكم سلام كلنا بدينا ب شي بسيط لا كنا نفهم شي ابني فكرة واي مشكلة واجهتك حط موضوع ونساعدك
    1 point
  20. He can save the JSON string as the account data since you can't save tables as an account data...
    1 point
  21. انا قلتله كذا علي اساس اذا هو يعرف يصمم سكنات اصلآ ولا مايعرف,
    1 point
  22. Wow , so nice , keep going bruh it's hard to create something like that ..
    1 point
  23. @DonOmar that doesn't save anything, it simply turns a table into JSON format. If the resource restarts then you've lost the data.
    1 point
  24. I think, I got you wrong. Are you trying to let the client to download gta3.img from server and load the models? If that's the case then MTA has lua functions for that but you have to call them for every single model separately. https://wiki.multitheftauto.com/wiki/EngineLoadDFF
    1 point
  25. استخدم الوظائف هذي لان اكوادك ملخبطة function getPlayerPoint ( player ) local playerAccount = getPlayerAccount ( player ) if ( isGuestAccount ( playerAccount ) ) then return false end return getAccountData ( playerAccount, "Points" ) or 0 end function setPlayerPoint ( player , Point ) local aPoint = type ( Point ) == "number" and Point or 1 local playerAccount = getPlayerAccount ( player ) if ( isGuestAccount ( playerAccount ) ) then return false end setAccountData ( playerAccount , "Points" , aPoint ) return true end
    1 point
  26. أحيكم جميـعأ وشـكرا لـكم علا الردود الحلوة والجميلة حقـك علي عيـني وراصي يا حبيب قلبي جنتول بس المشـكلة خويك موب فاهم الفوتشوب مثلك ! الدقه ضعيفة بسبب اني مسويها بالرسام . نـعم بتدخـل MTA وذي صورة للتوضيح ~
    1 point
  27. حقي في لوا cssوhtml حقك في فرق
    1 point
  28. Hey so i have made this Map this week! it's an extension of an older map i have made long time ago!, and i want to know what you think about it! and i'm starting new project that we will make you maps for homes like this or whatever you want for 2$ please rate me from 0/10! can wait to see what you guys think! http://imgur.com/a/2Bpn8
    1 point
  29. 8/10. I dont like so much the glass of the pool
    1 point
  30. اها لا انت تتكلم عن طريقة وضع الداتا بالدي اكس بالراندر افضل تيم انا اتكلم عن الاشخاص من التيم كود الاخ برستيج كان عشان التيم على العموم اعذرني سوء ظن
    1 point
  31. الصيام ماثر والله , مرة برستيج اعطاك كود يجيب اعلى واحد بالجدول ويحطه بتيكست
    1 point
  32. This is great. MTA never gets old. Good Job all together!
    1 point
  33. لول وايفاي لحس مخه ابعد عنه ذا
    0 points
×
×
  • Create New...