Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/03/19 in all areas

  1. Function names are 1 = 1 variables. So a local function is nothing more than a function saved in a local variable. And as you know local variables are faster because they have a limited scope. Instead of searching through all global variables, those variables are more or less being a part of the scope. It is like searching for polar bears on the: A the whole world B the North Pole C graveyard Where will you find that animal first? Different ways of writing them + differences in access: local function functionName () iprint(functionName) -- "function functionName" end iprint(functionName) -- "function functionName" functionName() local functionName = function () iprint(functionName) -- nil NOOOOOOO! end iprint(functionName) -- "function functionName" functionName() local functionName function functionName () iprint(functionName) -- "function functionName" end iprint(functionName) -- "function functionName" functionName()
    2 points
  2. A simple script of dressable characters and deformable faces. You can move every vertex of the head with a simple displacement shader. The script is in test state right now, I'll create a new editor later. Hope you like it.
    1 point
  3. Hello, i started this gamemode for nTL but they declined a mgm they wanted a normal race server. So i dont know what i can do with it. it have 8 lobbys and they work well. - Streamed Map Music - IPB Forum Account Connection - Settings - Money System - EXP System My Skype: nico.wissman - TobseN
    1 point
  4. السلام عليكم ورحمة الله وبركاته جبت لكم مود جديد لمنع الهاك والغش في سيرفرات الحرب والتكتيك رابط التحميل : https://up.top4top.net/downloadf-1303xl8e60-zip.html الشروط : 1- اضافة المود في قروب الادمن resource.anti-cheat 2- ان يكون اصدار السيرفر MTA SA 1.5.6 لتحديث اصدار السيرفر من هنا https://linux.multitheftauto.com/ بعد ماتحمل المود ركبه بالسيرفر بعدين ضيفه بقروب الادمن وشغله ( بعدين طف السيرفر وشغله (مهم لمنع الهاك والغش هام جداً : اذا عندك مود حماية من الهكر والغش اقدم من المود هذا إحذفه لأنه يتعارض مع هذا المود والسلام عليكم ورحمة الله وبركاته
    1 point
  5. السلام عليكم ي شباب هل حد سال هوا بيتعلم برمجة مودات ليه هل ليها مستقبل او ليها فايده غير هيافه ع الفاضى وولا هتستفيد بيها فى اى مكان غيير اللعبه فقط يعنى مثلا لو اللعبه قفلت روح ب الى تعبت عشان تتعلمو ارميه فى البحر انا كنت معاكو يمكن فى 2017 وفى ناس تعرف كنت كل شويه اسال على حاجات وتعبت وعملت مودات كتيره عشان سيرفرى وبعد ما تعبت وخلصت السيرفر ولا كسبت حاجا من دا كلو وضيعت سنين ع الفاضى واتحصرت ب الى اتعلمتو ف اللعبه دى بس حسيت قد ايه انا تافه ف اتجاهت الى برمجة المواقع والحمدلله اتعلمت حاجا للمستقبل واتطورت وبيقت بنشاء مشاريع ومواقع كامله كنت عوز اقولكو حاجا بس اتعلمو حاجا تنفعكو بعد كده لان الاعتزال من اللعبه جى جى وهتقول ياريت
    1 point
  6. Eu tava testando seu script e aqui nem deu esse erro, corrigi um problema na tabela dos locais também, você esta usando ( ao invés de { E a função DefineItens esta incompleta.
    1 point
  7. Não acho certo você fazer isso, por isso mesmo não faço questão de ajudar, pois o rapaz fez no intuito de ajudar a galera, se ele quisesse liberar ele teria deixado na descrição. Espero que não ache que isso é ignorancia da minha parte, longe disso.
    1 point
  8. Ficou 4 horas no tutorial do cara pra copiar o script todo? eu não irei ajudar pois o cara não deixou o link na descrição para baixar, o script esta todo feito lá, você copiou errado.
    1 point
  9. 0:36 hhhhhhhhhhhhhhhh @Rakan# @ميدوح
    1 point
  10. هههههههههههههههههههههههه طيب لقد بدت الحرب بيني وبينك
    1 point
  11. 1 point
  12. شيل يبني الفيديو لحد يحسدك على وقت فراغك ههههه
    1 point
  13. تم جلد الجميع ولم ينجو الا القليل @Default#^ @#_iMr,[E]coo @ibrahim# @#[K]iLLeR<3 @!#NssoR_) @Master_MTA @iMr.WiFi..! @NX_CI @N3xT @Rakan# @ميدوح @#SnpêŘ @KillerX @#StrOnG_,) @SuperX @#x1AhMeD-09 @Anis @[T]|O|[P]George @#BrosS @DABL
    1 point
  14. getElementType aceita qualquer elemento no argumento ao contrário da warpPedIntoVehicle que só aceita o ped, então não vai dar erro. Mas se você mudar a ordem deixando primeiro a verificação isPedInVehicle certamente dará aquele mesmo erro que na função warpPedIntoVehicle.
    1 point
  15. Você sabe escrever em português? Parece que vc usou tradutor. A sua imagem não pegou.
    1 point
  16. It will be indeed a bit better. But there are three very important downsides: A limit of the amount of local variables per function. 100% locals? It basically means that you can't use multiple files. Which will de-increase your own scripting performance. An local variable can only be called below it's declaration. So this will not work: local function test2 () test() -- input:2: attempt to call a nil value (global 'test') end local function test () end test2() But this will: local test2, test function test2 () test() end function test () end test2()
    1 point
  17. It will fill up the client message buffer. Just read my crap or just do it and find out. Note: for trigger[client/server]Events TCP messages are used and not UDP messages. Just a quick summary of those two communication protocols and why I do not recommend you doing that. (to save you some time) TCP = 100% success rate if the client remains connected and able to receive messages. In case of failure the message will be automatic resend. In case of success a message will be send back to inform the sender that the message has been delivered. Messages will be send in order, one at the time. The rest have to wait in queue. ? Available for scripting UDP = success rate is not measure able, because there is no validation if a message has been received or not. Method often used for streaming or for sending large files in pieces. NOT AVAILABLE for scripting In case of streaming (every frame) with TCP = trigger[client/server]Events + message 1 (frame 1) Sending message 1. + message 2 (frame 2) + message 3 (frame 3) + message 4 (frame 4) + message 5 (frame 5) + message ... + message 30 (frame 30) Receive response from message 1. Messages in queue: 29! Sending message 2. + message 31 (frame 31) + message 32 (frame 32) + message ... + message 60 (frame 60) Receive response from message 2. Messages in queue: 58! + message 61 (frame 61) + message 62 (frame 62) + message ... + message 90 (frame 90) Receive response from message 3. Messages in queue: 87! CONNECTION TROUBLE ;@ CONNECTION TROUBLE CONNECTION TROUBLE CONNECTION TROUBLE CONNECTION TROUBLE CONNECTION TROUBLE CONNECTION TROUBLE CONNECTION TROUBLE CONNECTION TROUBLE ... CONNECTION LOST You do not have to do this every frame. The events are already there for you. And this will not be any different from how it currently works.
    1 point
  18. Não vai. Pois dará false naquela condição e o script vai ignorar.
    1 point
  19. It is not possible when doing it based on two sides, unless the system time is set at the exact same time, while both systems are standing next to each other. There is only one way to reduce the connection delay + serverside and that is to buy multiple servers in other countries which will give the start signal and receive the end signal. But which person is willing to go that far? There is one real realistic thing you can do. Which is prioritise the connection. Use triggerClientEvent to start the race. And use triggerServerEvent to end the race. So instead of onColShapeHit use onClientColShapeHit + triggerServerEvent. This should be faster, but make sure to validate that so that you know for sure, that I am not talking crap. (I am not a MTA developer after all)
    1 point
  20. 1 point
  21. Soon .... @SuperX @ibrahim# -- حماس ولا مب حماس ؟ @#Bad_Boy,@Master_MTA
    1 point
  22. خلك مني , مسوي انت ووجهك تشويق وحماس ؟ ههههههههههههههههههههه قريبا ومدري وش ههههههههههههههههههههههههههههههههه
    1 point
  23. نعم ويا ليت تساعدوني في نشر المود
    1 point
  24. I come to provide a shader that eliminates blood. this resource serves specifically for roleplay servers that want to add modified heads, allows that when using the function 'setPedHeadless' the blood can not be seen and is comfortable to place them. Be careful, this eliminates blood in all aspects, even in shots. Apologies for bad English, I used a translator. Image: https://imgur.com/fwy82qI Download link: https://community.multitheftauto.com/?p=resources&s=details&id=15929
    1 point
  25. Nunca é tarde pra perder os maus costumes. Sobre o erro em warpPedIntoVehicle, tente assim que deve funcionar: local Marker_Inicio = createMarker(2494.508, -1750.817, 13.481 -1, "cylinder", 2, 255, 255, 255, 120) local Blip_Inicio = createBlipAttachedTo(Marker_Inicio, 42) local Marker_Fim = createMarker(2478.646, -1728.972, 13.383 -1, "cylinder", 2, 255, 255, 255, 120) local Blip_Fim = createBlipAttachedTo(Marker_Fim, 19) local veh = {} function Inicio (thePlayer) if getElementType(thePlayer) == "player" and not (isPedInVehicle(thePlayer) then if veh[thePlayer] and isElement(veh[thePlayer]) then destroyElement( veh[thePlayer] ) veh[thePlayer] = nil end veh[thePlayer] = createVehicle(422, 2481.013, -1747.164, 13.547, -0, 0, 2.78) warpPedIntoVehicle(thePlayer, veh[thePlayer]) end end addEventHandler("onMarkerHit", Marker_Inicio, Inicio) function Fim (thePlayer) if veh[thePlayer] and isElement(veh[thePlayer]) then destroyElement( veh[thePlayer] ) veh[thePlayer] = nil end end addEventHandler("onMarkerHit", Marker_Fim, Fim)
    1 point
  26. Qual a utilidade da função isElementWithinMarker sendo a já tem o evento onMarkerHit? Tire essa função pois ela parece desnecessária e use um nome mais adequado para o parâmetro em vez de source.
    1 point
  27. I just tested the script in my local server, it works perfectly lol. I feel he may have duplicated his resource by accidently leaving the old one running... What file type have you saved it under? Have you made sure it's under type server side?
    1 point
  28. for vehicle, damageData in pairs(damageToSync) do local vehicleDamage = 0 for attacker, damage in pairs(damageData) do vehicleDamage = vehicleDamage + damage end setElementHealth(vehicle, math.max(getElementHealth(vehicle) - vehicleDamage, 0)) end You can process it for example like that. You might also need to use isElement in this example, as client data can be out of date. Just so you know: it is not the fastest table structure for reading the data, but it is by far the fastest table structure for writing data. <-- please ignore this bull:~.
    1 point
  29. https://github.com/CodyJL/JLiberty-City https://github.com/CodyJL/JStreamer
    1 point
  30. https://youtu.be/x44DEM9j8hQ It's been 12 years since I fell in love with Hydra stunting and I've spent a lof of time in my life on doing these... However as time passes my mind changes, and I feel like I have pretty much reached the highest level I can as a gamer, and god I loved it too, for me Hydra stunting is art. But I simply grew up I guess, so I'm starting to appreciate real life more, and don't wanna miss out on that while I'm still young and free. I can't wait to see what GTA 6 brings to the table btw, it's not like I will never revert to being a more active gamer again, but for now I can tell you with safety that this is my very last GTA SA video. Enjoy !!!
    1 point
  31. Caraca, mané. Muito bom! Isso irá ajudar muita gente que está começando. Parabéns pelo vídeo e pela edição.
    1 point
  32. You were banned for constantly using cheats, and it's a permanent ban because you were also developing them. There is no way to change this situation.
    1 point
  33. Next time mention your serial (6BD7AA4520169D841D70F4A4ED44FE34) You were banned for creating and spreading a fake "MTA cheat" which contained njRAT remote control trojan. There's no way out because you have done it before with earlier 'cheats'. I will PM you details, locked
    1 point
  34. Aha, buy new computer with another ip wifi
    1 point
  35. This is what happens to people who upload resources to community with malicious backdoors Ban set to expire in 3 months
    1 point
  36. No, we won't allow anyone to use MTA to commit crimes, using MTA to facilitate spreading viruses around hits a zero-tolerance policy. There'll be no unban anywhere soon, he may try again in a considerable amount of time (months) EDIT: ban set to expire in 3 months
    1 point
  37. As code editor you can now use Visual Studio Code with my extension over 6000 people have downloaded it already! https://marketplace.visualstudio.com/items?itemName=subtixx.mtasa-lua
    1 point
  38. E se eu quiser ir para uma posição informada pelo jogador? /tp 512.76 234.54 14.5
    1 point
  39. وش ذا التشويق وش ذا الحماس
    0 points
×
×
  • Create New...