Leaderboard
Popular Content
Showing content with the highest reputation on 07/05/18 in all areas
-
2 points
-
I already have one in progress, will take a while though because I'm going to add the ability to edit JSD files, a texture editor, an object browser, property editing, ect will allow you to make the maps your own. I dropped support for default object functions after a lot of consideration into the new possibles that could be done using my own functions.2 points
-
Hello! I've been working with MTA team on implementing the ability to play custom IFP animations in MTA since a couple of months. Today, I want to notify you all that it's done after a lot work, this means you can create your own IFP animations in 3ds Max using Kam's script, play them in MTA:SA (not released yet) using Lua scripting functions. I've created my pull request on github which you can find here. Everything's pretty much done, but there's one problem, the pull request cannot be merged into the master branch because there's a lot of code to go through, this will make fixing bugs very difficult, so we'll need to test everything in every way possible before releasing. MTA used to have a lot of developers back in the days who designed the core of the software that we have today, I appreciate their work, and I'm forever grateful for their contribution. There are still a few developers from the MTA team and other old contributors who spends hours upon hours on making MTA better, and get literally nothing out of MTA for their work, but they still do it . My point is, MTA has potential, and together, we can make it better, not having enough time to test everything out is on the main reason why we still don't have this feature implemented into MTA's main branch, so I'm here to ask the community for help in testing this feature. There are so many gamemodes that can take advantage of this feature. We still have plenty of RP servers here, and they still keep increasing till this day. RP servers have almost everything they need, server developers keep trying their best to push the limits in order to have more realism, I honestly believe this will fix that problem, or at least improve it. Here are two video: What is IFP? IFP is the animation file format for GTA III, SA, and VC. Adding support for this file format will allow us to play any custom animation which are made for GTA:SA and GTA:VC. You can load as many IFP files you wish to, you can have hundreds of thousands of animations. Note: GTA III animations are not supported for now. How you can help: As much as everyone wants to have custom animations in MTA, I would love to see them as well. You can help by testing different IFP files, and report bugs on this thread. Download the new MTA:SA from here: https://ci.appveyor.com/api/buildjobs/67st54i25p8ge8is/artifacts/InstallFiles.zip Right-click on InstallFiles.zip, extract the files to some location on your computer, I usually extract them to my desktop. Download the resources from here: https://drive.google.com/file/d/1TIK0-M3CNFR_1Yjn6pjImrS7184SS8jS/view?usp=sharing Create a folder with name "resources" in InstallFiles\server\mods\deathmatch, and extract resources.zip to InstallFiles\server\mods\deathmatch\resources. Start your MTA:SA server from location: InstallFiles\server\MTA Server.exe, and then start the ifp test resource from console "start ifptest" Now launch MTA from InstallFiles\Multi Theft Auto.exe, join your server. Use keys 1, 2, 3, 4, or 5 to play the custom parkour animation from parkour.ifp in ifptest. How to report bugs? When you are playing custom animations, if something's not working the way it should be, or if MTA crashes then please fill this form and reply to this thread: IFP download link: (put the download link here for IFP, so I can download and test it myself) Description: (Explain what the bug is) Steps To Reproduce: (write the steps on how I can reproduce the bug myself) Example: IFP download link: https://www.website.com/gta4.ifp Description: When I play this animation named "CartWheel," I can't move for a while, and MTA crashes. Steps To Reproduce: 1. Load "gta4.ifp". 2. play animation named "CartWheel" using setPedAnimation. 3. MTA crashes. If you want to submit the bug report by PM on forum then feel free to do so. I've added the resource "ifptest" to show you how to play custom animations. You can check how I did it by checking InstallFiles\server\mods\deathmatch\resources\ifptest\client.lua. About the new Lua functions, quoting myself: "There are three new Lua functions added: // loads IFP with a custom block name ifp engineLoadIFP ( string ifp_file_path, string custom_block_name ) // this will replace an internal GTA animation with custom one, it's a light-weight operation, // don't worry too much about performance. Different peds can have different running, walking, // crouching, shooting, etc. animations all running simultaneously because we are not actually // replacing animation hierarchies, we are merely storing everything in std::map which is in // CClientPed. When an animation triggers, we get the ped by clump, and play the animation // we wish to play. setPedAnimation works a little different than this, but the idea is same. bool engineReplaceAnimation ( ped thePed, string block_name, string anim_name, string custom_block_name, string custom_anim_name ) // This will restore animation replaced using engineReplaceAnimation, if only 1 parameter // is provided which is ped, then it will restore all animations, if block name is also provided, // then it will restore animations of that block only, if animation name is provided as well, // it will restore that specific animation only. bool engineRestoreAnimation ( ped thePed [, string block_name, string anim_name ] ) " To add your own ifp file, just add this to meta.xml: <file src="YourIFPFileNameHere.ifp" /> then in client-side Lua script, you can do: local customIfp = engineLoadIFP ("YourIfpNameHere.ifp", "YourCustomBlockNameHere") setPedAnimation ( localPlayer, "YourCustomBlockNameHere", "YourCustomAnimationNameHere" ) If you have any questions, write them here.1 point
-
نبغى نسمع اقوى ترحيب لمحمد ( سترونق ) حبيب القلب يامرحبا واهلين بأهل المواجيبمن عادتي للضيف ازيد التراحيبوالا الردي ماني بحسب حسابهفي شوفكتك تبرى جروح المصاويبوالذيب يطرب لالقاله ذيابهأقولها ترحيبة العز والطيبلخويي محمد ي مرحبابه1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
[CLOSED] Resolvido por privado. Ele estava usando a função hasObjectPermissionTo no lado client. A solução foi usar triggerClientEvent no lado server.1 point
-
<script src="s_camhack.lua" /> -- Isso é server-side. Aqui funciona. <script src="c_camhack.lua" type="client" /> -- Isso é client-side, essa função não vai funcionar aqui. A função hasObjectPermissionTo é server-side, ela não funciona em scripts do tipo client. Além disso, provavelmente as funções setPlayerCamHackEnabled e setPlayerCamHackDisabled que estão em outra parte do código possuem funções client-side, dai não adianta passar o script inteiro pra server-side que dai elas não vão funcionar. Nesse caso terá que usar triggerClientEvent, pois você possui funções que só funcionam client-side e outras que só funcionam server-side.1 point
-
انتبة على مدة الخادم اخوي ذا سنوي مش شهري + شكرا على تعليقك اخي بالتوفيق لك ^_ وفي ايضا مواصفات اخرى شهرية بسعر جميل1 point
-
1 point
-
ذا كودك حاطت لك كل الاخطاء لهيك حاول تصلحها بنفسسك و ورنا محاولتك بعد التصليح addEventHandler("onClientGUIClick",root, function () if source == WarpButton then local team = "Police" setPlayerTeam ( source, team ) -- الوظيفه سيرفر سايد لهيك لازم تستخدم التريجر + source == الزر لهيك ما ينفع end end ) -- + team ما ينفع لانه سترنج لازم تستخدم --getTeamFromName1 point
-
Thanks. It will be released when we are done testing.1 point
-
1 point
-
السلام عليكم ورحة الله وبركاته اليوم بسويلكم شرح عن الويكي وكيفية التعامل معها بدون مقدمات بسم الله الرحمان الرحيم أولا رابط الويكي: https://wiki.multitheftauto.com/wiki/Main_Page اول ما تدخل الويكي رح تشوف الصفحة هاذي كمبتدأ رح تحتاج بس الي بالمربع الأحمر وش هاذي الصفحات ؟ هاذي اقسام الفنكشنات والاحداث Client Functions = الوظائف الي للكلينت (ممكن تلاقي فنكشنات ينفع تستعملها للسيرفر والكلينت) Client Events = الاحداث الي للكلينت Server Functions = الوظائف الي للسيرفر (ممكن تلاقي فنكشنات ينفع تستعملها للسيرفر والكلينت) Server Events = الاحداث الي للسيرفر وظائف الكلينت-Client Functions ندخل نشوف هاذي الصفحة هاذي اقسام الوظائف يعني مثلا انت تبي وظائف العلامات على الخريطة تدخل على 2 Blip functions وتشوف كذا اذي هي وظائف العلامات على الخريطة الحين تعلمنا كيف نبحث عن الفنكشنات الحين ندخل لوظيفة رح ندخل GetBlipSize رح نشوف اسم الوظيفية ولون ازرق وش هذا اللون هاذ اللون يعني انه الوظيفة يمكن ان تستخدم في الكلينت والسيرفر اما اللون البرتقالي فهي للسيرفر فقط اما احمر فهي للكلينت فقط هنا نشوف شرح عن الوظيفة ببساطة وهو يجيب لك حجم العلامة . . . نجي للساينتكس وهو عبارة عن مبنى الوظيفة وهنا رح تواجهوا كلمات مثل int=رقم بدون فاصلة عشرية(اذا كتبت مع فاصلة رح يحسب بس الرقم بدون الفاصلة) bool/Boolean = true/false لازم نكتب Element = لاعب=player الترجمة الحرفية هي عنصر مثلا Float = عدد ممكن مع فاصلة عشرية ما بالوظيفة الي معنا ما في غير blip =Element نوع من ال https://wiki.multitheftauto.com/wiki/Element Required Argumentsنروح لل رح اسميها المستلزمات يعني الوظيفة ما رح تشتغل بدونها في نوعين نوع يكون بقوس مربع[]هاذي مو اجباري اما الي مو بالقوس المربع لازم تتواجد بالكود او ما رح يشتغل مثلا بهاذي الوظيفة بس موجود theBlip: The blip you wish to get the size of. يعني العلامة الي تبي تجيب حجمها الحين Returnsنروح ال وهي وش الكود رح يرجعلك اذا نجح بهاذ الوظيفة رح يرجعلك حجم العلامة بدون الفاصلة العشرية وخيرا يجيبلك مثال عالوظيفة نروح للأحداث ولي هي اذا صارت تشتغل الوظيفة اول ما نختار وظيفة رح تظهر هاذي الصفحة الاحداث زي الوظائف بس ما في احداث مشتركة(بلون ازرق) رح يكون شرح للحدث ولي هو اذا بدأ الاعب بدخول السيارة الحين نروح للباراميتير والي هي اذا صار الحدث راح يعطيك المعطياات بالنسبة للحدث الي اخذته enteringPlayer: الاعب الي بيدخل السيارة seat: المقعد الي راح يدخله الاعب jacked: الاعب الي بتحكم بالسيارة door: من أي باب دخل 0= باب السائق 1= باب الي جنب السائق 2= باب الخلفي اليسار 3= باب الخلفي اليمين نروح الحين للسورس ولي ترجمته الحرفية هي المصدر مصدر الحدث ولي هي السيارة بالحدث الي معي الحين نروح لالغاء الحدث والي هو اذا الاعب استخدم cancelEvent() If this event is canceled, the player will not enter the vehicle اذا استخمنا الفنكشن cancelEvent() رح يلغي عملية دخول السيارة وما راح يدخل وأخيرا رح يعطيك مثال عالحدث وبس أتمنى انكم استفدتم وبالتوفيق للجميع1 point
-
0 points