Members

2

3,395

Moderators

1

3,623

Members

1

1,276

Members

1

1,122

## Popular Content

Showing content with the highest reputation on 01/01/20 in all areas

1. 1 point

## عودة Master_MTA

السلام عليكم ورحمة الله وبركاته طبعا الكل كان يعرف اني معتزل لكن الان الحمدلله رجعت وهذا الموضوع بستغله في نقطتين اعلان رجوعي وفتح سيرفر جديد بعودتي زي ما تقول لعبه عشان الادمن ما يعرف الموضوع تبع اي قسم هههههه فيخله هنا المهم مع رجعتي رجعتلكم مع سيرفر GGC اللي الموقع الخاص فيه https://ggcrpg.com/ بالنسبه لايبي السيرفر mtasa://51.83.99.215:22003 الافتتاح باذن الله غدا في الليل الساعه 5 بتوقيت السعوديه تنورونا السيرفر يدعم عربي+انجليزي+فرنسي الموقع يدعم العربي والانجليزي يا ليت اللي عنده وقت يترجم الموضوع بالقسم الانجليزي بالتوفيق
2. 1 point

## Adding Heat-Seeking Missile to Hunter Helicopter

To understand what [1] and [2] are, first you must understand the basics of table. A table is like a container and you can put a lot of things in it, that can be accessed later on. For example, -- Example table local table = {"John", "David", "Abraham", "Adam"} You can insert any value in a table (e.g integers, strings etc). Every item in a table has an index value, which is basically an integer value that tells the position of its items. In this case, local table = {"John", "David", "Abraham", "Adam"} -- John has index value '1' because it is the first item in our table -- David's index value is 2, and so on. When we refer to any particular item in a table, we use the following format, tableName[indexNumber]; For example, if we wanted to output the value of David, we would do this, outputChatBox( table[2], sendToElement ) -- 'sendToElement' is the element which you want to send the message to, e.g root, source. When we did the for loop in the above source code, we actually looped through all the values in the table, e.g, for index, value in ipairs(table) do outputChatBox(value, sendToElement) end This would output all the values in our table. In other words, we would see John, David, Abraham and Adam outputted in chat box. In your source code, vehicles is a table that is returned by the function getElementsWithinRange, and obviously it has keys / indexes, and values. Values would be the player elements and keys / indexes would be the number that they are referred to in the table. local target = vehicles[1] ~= vehicle and vehicles[1] or vehicles[2] What we are essentially checking here is that the target is not going to be ourselves but someone else, so the missiles don't actually target us. In other words, vehicles[1] is the first player element in the vehicles table. Check if vehicle[1] is not our own vehicle, which is defined above as, local vehicle = getPedOccupiedVehicle(localPlayer). ------- About the debug error, it is because 'v' is not specifying an index i.e a player element, so if you replace it with 'v[1]', it should work. But then again, before doing this, add a check to ensure v[1] is not our own vehicle. I'm glad you figured it out on your own. Good luck.
3. 1 point

## عودة Master_MTA

حبيبي الله يسعدك تسلم نورك يقلبي حبيبي تسلملي ❤️ انا واخذ على محمد فمافي مشاكل ههههه تسلم حبيبي حبيبي الله يصلحك لك وحشه ❤️❤️
4. 1 point

## عودة Master_MTA

وش الموضوع الميت ذا , سنه كامله عدت و ما في اي تفاعل مفروض ينقفل امزح بالتوفيق لك و لسيرفرك
5. 1 point

6. 1 point

## عودة Master_MTA

حطمت الرجال الله يهديك 😂😂. لكن الصراحة م أشوفه زي م تشوفه والله عجبني الصراحة باقيله صح التنظيم ماهب منظم الايقونات والأشكال ماهب حلوة غيرها عجبني.
7. 1 point

## عودة Master_MTA

Welcome back Pro - ..*
8. 1 point

## Ajuda ai familia

Vê se no debug mostra algum erro e você pode testar se o evento onPlayerChat desse resource está sendo chamado colocando alguma output no código, faça o mesmo no lado cliente. Se não conseguir fazer funcionar mostre aqui o arquivo meta.
9. 1 point

## Ajuda ai familia

Estranho não funcionar, fez tudo certo? Colocou no lado certo?
10. 1 point

## Ajuda ai familia

Client function stopmusic() if (isElement (sound)) then stopSound(sound) end end addEvent ("pararsom", true) addEventHandler ("pararsom", root, stopmusic) addEventHandler ("onClientResourceStart", resourceRoot, function() setTimer (function() sound = playSound ("joinsound.mp3") end, 2000, 1) end) Server addEventHandler ("onPlayerLogin", root, function() triggerClientEvent (source, "pararsom", source) end)
11. 1 point