Leaderboard
Popular Content
Showing content with the highest reputation on 09/08/17 in all areas
-
3 points
-
Download: https://community.multitheftauto.com/index.php?p=resources&s=details&id=14691 This is a killcam for players who got killed by a hydra/hunter, showing them a feed of pilot's next movements. (not those leading up to the kill) Example: :2 points
-
وعليكم السلام ورحمة الله وبركاته بالنسبة لطلب الثاني تقدر تختصر في كود واحد فقط بدلا من التعديل على الـ scoreboard images = { type = "image", -- النوع صورة src = "image.png", -- إسم الصورة color = tocolor(255,255,255,255), -- اللون width = 25, -- العرض height = 25 -- الطول } setElementData ( player, "name", images ) بالنسبة لسطر الأخير قم بتعريف اللاعب سواء كان بجانب السيرفر أو الكلينت وقم بوضع إسم الكولمن فقط2 points
-
addEvent("onZombieWasted") addEventHandler( "onZombieWasted", getRootElement(), function (killer) killerName = getPlayerName(killer) weapon = getPedWeapon(killer) wr, wg, wb = getPlayerNametagColor(killer) exports.killmessages:outputMessage ( {killerName,{"padding",width=3},{"icon",id=weapon or 0},{"padding",width=3},{"color",r=162,g=2,b=2},"Zombie"},getRootElement(),wr,wg,wb ) end) ذا من مود زومبي .2 points
-
1 point
-
1 point
-
1 point
-
تواصل معي بالخاص هنا يا غاالي او عبر الواتساب لكن نادرا ما افتحه +2001011860707 حطيتلك مع مفتاح الدوله1 point
-
مابقولك انا محترف لكن بدايتي كانت بالتعديل على المودات لا تروح تصنع سكربت من الصفر لحالك رح عدل على المودات الاول لين ما تفهم الفنكشنات والايفينتس وكذا تمام زبط معاك وعرفت تعدل سولك سكربت بسيط بعدين علطول لا خلصت سكربت بسيط سولك واحد صعب وتعال هنا وبنساعدك بكذا بيكون سهل جدا انك تبرمج سكربتات1 point
-
1 point
-
1 point
-
@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
-
this is a simple code to save : local redfirst,greenfirst,bluefirst,redsecond,greensecond,bluesecond,redthird,greenthird,bluethird,redfourth,greenfourth,bluefourth = getVehicleColor(veh, true) local color = toJSON({redfirst,greenfirst,bluefirst, redsecond,greensecond,bluesecond, redthird,greenthird,bluethird, redfourth,greenfourth,bluefourth}) and this is a code to load the color: local redfirst,greenfirst,bluefirst,redsecond,greensecond,bluesecond,redthird,greenthird,bluethird,redfourth,greenfourth,bluefourth = unpack(fromJSON(color)) setVehicleColor(veh, redfirst,greenfirst,bluefirst,redsecond,greensecond,bluesecond,redthird,greenthird,bluethird,redfourth,greenfourth,bluefourth)1 point
-
Just look at the example of the function he gave you on the Wiki, https://wiki.multitheftauto.com/wiki/SetAccountData Yes, you can use SQL. Use MTA's SQL functions, starting with https://wiki.multitheftauto.com/wiki/DbConnect1 point
-
1 point
-
I'm working on custom-animations which also has the feature to replace and possibly disable default animations. You will be able to control it in upcoming MTA release or the adjacent one. Just wait till then.1 point
-
I suppose they use setVehicleHandling and the seatOffsetDistance attribute.1 point
-
1 point
-
1 point
-
1 point
-
( شوف اخوي , ما اتوقع احد فاضي يعلمك ( بدون تحطيم وممكن تلقى بس يعلمك بعض الاشياء ويسحب عليك فالأفضل انك تتخذ التوجيهات اللازمة لبدء البرمجة وتتفوق على نفسك كل شوي لأن لما تتعلم ذاتياً , تحس بشعور غريب نوعاً ما بنسبة لي . : الشعور يجيني اذا اكتشفت شيء مفيد مره بنسبة لي عن طريق بحثي وجهدي لكن اذا كان فوق الحد اقصد انه اذا كان البحث كان فوق اللازم فأكيد مابتحس بالشعور لأنك اكيد بتجيبه اذا سويت هذا الشيء لكن لما تبذل مجهود وبحث قليل عن الشيء ممكن يجيك الشعور وممكن لا والشعور صعب الوصف لكنه شعور جميل نوعاً ما فيه لذة -- تراها مقصودة وهاذي اللذة الي تحمسك على التعلم واكتشاف المزيد وبتوفيق كان معك استاذ محمد وانتهت محاضرتنا لهذا اليوم .. انصرااف1 point
-
Client side modules would be a massive security hole as they'd allow you to run arbitrary native code on the client.1 point
-
We became recently aware of this issue. It's indeed a sad thing, and there might be an option of disabling VOIP for UAE users, but it's unclear if that will be enough. It would be nice to apply for a TRA license, but ultimately we cant afford it (applying costs 10,000 AED). If we could get some sponsorship or donations to apply for a license, it could be an option however.1 point
-
1 point
-
Hello I would like to propose an idea. My idea is that MTA's full source code gets documented on Wiki. It might be a hard job to document everything, but there's no rush, it could go little by little until someday the whole source code is explained on wiki. Also there could be an introduction page where is explained how to compile mta by yourself, and how to do your first function, and so on (Similar how scripting introduction page explains Lua scripting) The reason why I'm proposing this idea is because contributing to MTA's codebase seems a bit too hard, and not very explained in my opinion, especially for the newer people who'd like to contribute. Simply put, even by reading source code itself, sometimes we don't know what something does even if it's commented in the code. I think that by achieving this idea we could get people into easier understanding how everything works and how to contribute since everything would be explained on Wiki. This would equal more pull requests,bigger and faster progress, and perhaps some more developers in mta team haha. P.S Writing everything on Wiki might take a long time, but throughout say a year I think it could be fully documented (It wouldn't be just 1 guy writing wiki pages, anyone who knows the functions and how they operate could help out by writing a wiki page, hell I'd even help out make the pages, a dev would just need to explain to me how a function works and I'd make the page if they don't have time do so) Thank you for reading, please tell me what you think of this1 point
-
Greetings Community. Today, i'v decided to make a tutorial about LUA tables. In this tutorial, you'll find the whole information about it. it's easy just try to follow my tutorial step by step. Tables are the only data structure available in Lua that helps us create different types like arrays and dictionaries. Lua uses associative arrays and which can be indexed with not only numbers but also with strings of corse except nil. Note: "Tables have no fixed size it can contain billions of rows "based on our need." Lua uses a constructor expression "{}" to create an empty table. An example is shown below mtaTable = {} -- simple table empty mtaTable[1]= "MTA:SA" --simple table value assignment There are in built functions for table manipulation. 1) table.concat (table [, sep [, i [, j]]]) : Concatenates the strings in the tables based on the parameters given. local MTA = {"1","2","3","4","5","6"} -- simple table contain numbers. outputChatBox(table.concat(MTA)) -- concatenated string of table. === > [[output : 123456]] local MTA = {"1","2","3","4","5","6"} -- simple table contain numbers. outputChatBox(table.concat(MTA,", ")) -- concatenate with a character. === > [[output : 1,2,3,4,5,6]] local MTA = {"1","2","3","4","5","6"} -- simple table contain numbers. outputChatBox(table.concat(MTA,", ", 2,3)) -- concatenate MTA (table) based on index. === > [[output : 2,3]] 2) table.insert (table, [pos,] value): Inserts a value into the table at specified position. -- Example 1: local MTA = {"Yellow","Blue","Red"} -- same table but this time contain some colors. table.insert(MTA,"Green") -- insert an other name at the end of the table. -- Result : MTA = {"Yellow","Blue","Red","Green"} outputChatBox("Last color added "..MTA[4]) -- Green -- Example 2: table.insert(MTA,2,"Black") -- insert new color at index 2 outputChatBox("Color at index 2 is "..MTA[2]) -- Black 3) table.remove (table [, pos]) : Removes the value from the table. table.remove(MTA) outputChatBox("The previous last element is "..MTA[5]) -- nil 4) table.sort (table [, comp]) : Sorts the table based on optional comparator argument. Sorting table is often required and the sort functions sort the elements in the table alphabetically. A sample for this shown below. local MTA = {"Yellow","Blue","Red","Green"} for k,v in ipairs(MTA) do outputChatBox("Index: "..k..", Value:"..v) end --[[ Result Index: 1, Value: Yellow Index: 2, Value: Blue Index: 3, Value: Red Index: 4, Value: Green]]-- table.sort(MTA) -- using table.sort for k,v in ipairs(MTA) do outputChatBox("Index: "..k..", Value:"..v) end --[[ Result Index: 1, Value: Blue Index: 2, Value: Green Index: 3, Value: Red Index: 4, Value: Yellow]]--1 point
-
1 point
-
-- to close function closeMarker ( aPlayer_ ) if ( getElementData ( aPlayer_ , 'aMarkerStats_' ) ~= 'Close') then setElementData ( aPlayer_ , 'aMarkerStats_' , 'Close' ) end end -- check close function isMarkerClose ( aPlayer_ ) return getElementData ( aPlayer_ , 'aMarkerStats_' ) == 'Close' end0 points
