Jump to content

Leaderboard

Popular Content

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

  1. Hey people, how is prison? ? In 2015 I released a beta version of a resource that created driving trains. But unfortunately I never finished it. So that is why I am making a final update for it, including rewriting and cleaning the old code. The this version will be uncompiled, so you can adjust it like you want. It will take some more days to finish it, so be patient. I can send you a pre-version, if you like to try it out before the release. No requirements for a pre-version, just a little bit feedback would be nice. To receive the pre-version, send me a personal message and I will send you the version within 1-3 days. The old topic:
    2 points
  2. Já começou errado querendo um gerador de script. Faça na raça mesmo, aumentando os valores e testando.
    2 points
  3. بسم الله الرحمن الرحيم , function نكمل هسا بالجزء 2 عن الـ الجزء بسيط هذا بيكون . function setPedArmor ( theplayer , armor ) معلومات بسيطة : كلمة function , أو او تنقص حرف او تزيد حرف Function ما يصير تكتب أول حرف كبير إسم الفنكشن إلعب فيه زي ما بدك , أول حرف كبير , أول حرف صغير ما يأثر , حط الإسم اللي يناسبك - تنبيه : إسم الفنكشن لازم ما يكون فيه فراغ ( سبيس ) , مثال : function set Ped Armor ( plr , a ) - مسموح انك تضع _ في الإسم : function setPlayer_Armor ( p , a ) arguments ال : كلمة theplayer , ما يصير تسوي سبيس ( فراغ ) بين الكلمتين , لانه يسوي غلط مثلا تسوي هيك : the player خطأ × - arguments مسموح انك تضع _ في الـ function setPedArmor ( plr_ , _ar_mor ) argument الـ : - لا يجوز ان يكون رقم , لازم يكون كلمة . - لا يجوز ان يكون رمز , مثل : @ , % .. وكل الرموز الاخرى ما عدا (_) الشحطة إختبار : Q: صحح الخطأ في كل فرع من الأفرع التالية : [1]- fnction theFunCTIOn ( s , & ) [2] - function_ thefunction ( s , z ) [3] function nR_ ( x , _a _ ) نراكم في الجزء 3
    1 point
  4. local functions = { outputText = function ( ... ) outputChatBox ( ... ) end, } functions.outputText ( "Hello", root, 255, 255, 255, true )
    1 point
  5. مزبوط , بس هذي _ , بمستوى متقدم , [3]function nR_ ( x , _a_ ) هيك الجواب ^
    1 point
  6. Glad to hear that your issue has been resolved.
    1 point
  7. I think the message is confusing. The timer just waits 2 seconds and not 5 minutes. I doubt that you are typing "/rp" two times faster than 2 seconds. But the script above does prevent ... "rapid" enabling. And then there is this weirdness about a timer inside of a timer. Maybe try increasing some timers?
    1 point
  8. هذا جدول ماله أي علاقه, شوف نفس الطريقة اللي سويتها فوق, حط الرقم او المتغير بدل الرقم اللي حطيته أنا أو هات كودك.
    1 point
  9. Hello NewMemberScript and welcome to our MTA scripting forums, could you please format your Lua code properly using the "<>" button in the richtext editor? Also please post in English because I cannot really understand your problem...
    1 point
  10. وضح شوي ولا اطرح كودك عشان نقدر نفهم
    1 point
  11. me mostra a parte do seu codigo ai o progesso ta errado por isso ta doidao assim kkk testa isso local vida= math.min(getElementHealth(localPlayer)/1000,1)
    1 point
  12. I hope you think chat and not cheat Something like that. (its not the full code, you need to finish it!) -- SERVER function sendMessageToCustomChat(player, cmd, ...) -- TODO: check if `player` can use this command local text = table.concat({...}, " ") for i, target in ipairs(getElementsByType("player")) do -- TODO: check if `target` can see this message outputChatBox(text, target) end end addCommandHandler("chatcommand", sendMessageToCustomChat)
    1 point
  13. Hint: you can calculate 1/2 plus the half of cosinus of a time-fraction multiplied by 2PI to get a wave-function between 0 and 1; by setting this value to the intensity shader variable you will get a "smooth" animation.
    1 point
  14. Hint: we need to move the code from the key "up" handler into the key "down" handler somehow.
    1 point
  15. I made a video to show how its working, Im not sure if is the same effect you trying to do the part the changes the position while resizing is something like: addEventHandler("onClientGUIScroll", root, function(element) setObjectScale(roda,guiScrollBarGetScrollPosition(element)/10) attachElements(roda,getPedOccupiedVehicle(localPlayer),rodax,roday,rodaz+getElementDistanceFromCentreOfMassToBaseOfModel(roda)*getObjectScale(roda)-getElementDistanceFromCentreOfMassToBaseOfModel(roda)) end) with roda being the wheel object and rodax,roday,rodaz the attachelements offsets, to make the wheel object rotate with the real wheel I made a onclienprerender event getting the car z rotation and the wheel rotations: function rodarot() local vrotx,vroty,vrotz=getElementRotation(getPedOccupiedVehicle(localPlayer)) local rodarx,rodary,rodarz=getVehicleComponentRotation(getPedOccupiedVehicle(localPlayer),"wheel_rf_dummy") setElementRotation(roda,rodarx,rodary,rodarz+vrotz) end this code is not optimized nor checking for warnings/errors, just an example for use in a proper code
    1 point
  16. Haha, trying to change your serial.. there are protections against it. So that won't work. Anyways - the reason you're banned is because you are working together with "TheInsaneKiller" (after I believed him on his appeal at https://forum.multitheftauto.com/topic/121623-global-ban/) on doing prohibited things with MTA, cheat development-related. He was also banned again for giving you the things that were being messed with. If you don't want this ban to be permanent, then please contact me by sending me a PM, for more details.
    1 point
  17. Well, a simple script that show on the screen a grenade indicator, i made it 6 years ago and i no longer uses it so i decided to share it. Download: https://community.multitheftauto.com/?p=resources&amp;s=details&amp;id=16021
    1 point
  18. setPlayerWantedLevel takePlayerMoney onClientGUIClick - Supondo que seja clicando em um botão do painel GUI.
    1 point
  19. https://wiki.multitheftauto.com/wiki/Resource:DxGUI aconselho usar GUI use o resource GUI Editor pra fazer paineis dx ou gui, como você esta começando agora é bem complicado fazer um painel com calculos sem usar o GUI Editor. Tutorial em GUI: https://forum.multitheftauto.com/topic/113482-tutorial-em-vídeo-sobre-cegui/
    1 point
×
×
  • Create New...