Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/12/17 in all areas

  1. After last update. Deleting colorSchemeLoad did not help.
    2 points
  2. Hello! Today I am bringing you a new part/update of the Advanced Vehicle System project I am currently working on. This part of the project contains a simple, yet nice and effective reverse light system. It is not fully finished yet, still need some improvements and features, but I managed to get it done "partially", so I can show it to you. This is compatible with every vehicle that has the "vehiclelightson128" texture, which most of the time happens with modded vehicles. But it definitely does with default vehicles. [RED] = Unaffected lights [GREEN] = Affected lights In action: Currently this script has 3 custom functions and 2 custom events, these are: setVehicleLightsOn(vehicle, state) - This is a workaround for the default setVehicleOverrideLights function. [server] setVehicleReverseTexture(vehicle, state) - With this function you can toggle the reverse light texture on/off. [shared] isVehicleReversing(vehicle) - Returns true if the vehicle is reversing, false otherwise. [currently server only] onVehicleStartReverse - Parameters: driver, lightState [server] onVehicleStopReverse - Parameters: driver, lightState [server] driver: The player who drives the vehicle lightState: The light state of the vehicle (true/false). This returns the value set by setVehicleLightsOn function. Always returns something. The source of these events is the vehicle that starts/stops reversing. These events are triggered when a vehicle starts/stops reversing. More updates coming soon! I always like to read suggestions, so feel free to comment your thoughts and what should I add/remove! Thank you for reading, hope you like it! Part of the Advanced Vehicle System project.
    1 point
  3. @kieran Oh and one last thing: bool addEvent ( string eventName [, bool allowRemoteTrigger = false ] ) If you use the addEvent function, you can allow and disallow triggers from different sides(client/server) TRUE = enabled I recommend you to add this function to the resource where you are also triggering from, because if you trigger an event which isn't added yet, you would receive warnings.
    1 point
  4. @IIYAMA Thanks so much, I was confused if custom handlers were just used within a script nice to know there's an easy way!
    1 point
  5. He is asking how to make it so Rhino takes more damage, believe it or not... Rhino DOES take damage already! But it takes little damage.... There's a few ways you can mess around with how much damage vehicles take, I recommend you start with SetVehicleHandling and use collisionDamageMultiplier, I do not know if this is just for vehicle collisions, so if your car hits a wall or another car.... But it's a start! If it doesn't work for bullets etc, then maybe think of getting the vehicles health and setting it (as bonus said) with OnVehicleDamage, this will mean you can set health to vehicle health -x where x is the amount you want to subtract from the vehicles health after you get the current health. If you have set Rhinos to be damage proof with another script then just use setVehicleDamageProof(vehicle, false) where vehicle is the Rhino. Hope this helped! Can always try make a function if you're still struggling.
    1 point
  6. الان انت ما احترمتني لكن انا بحترمك دليل على تربية اهلي لي مب اكثر على العموم اولا ان كنت جاهل لا تسوي نفسك فاهم كل شي انت حتى ما تعرف وش وظيفة addDebugHook فلا تتكلم وسلامتكم تم قصف الجبهه بنجاح
    1 point
  7. تجبروني اني انهي الموضوع local dataname='اسم داتا الفلوس حقك' function prefun( res, fun, _, file, line, ... ) local args = { ... } if fun=='setElementData' then if #args~=3 then return end if not isElement(args[1])or getEelemntType(args[1])~='player' then return end if type(args[2])~='string' or (type(args[3])~='number' or type(args[3])~='string') then return end if args[2]~=dataname then return end setPlayerMoney(args[1],tonumber(args[3])) elseif fun=='removeElementData'then if #args~=2 then return end if not isElement(args[1])or getEelemntType(args[1])~='player' then return end if type(args[2])~='string' then return end if args[2]~=dataname then return end setPlayerMoney(args[1],0) end end addDebugHook( "preFunction", prefun) بالتوفيق
    1 point
  8. Hello everyone. I created a page with an useful function. But I think that it's too hard to others understand. So I need an experienced user or moderator to fix the page or tell me what to do. FadeInText
    1 point
  9. حبيب قلبي التعب لك راحه يا بعدي اي مشكله تواجهك ارفع موضوع وابشر باذن الله بساعدك بقدر الامكان تقدر تستفيد من الشرح ذا
    1 point
  10. با اذن الله قريب رجوع شيوخ في حال الافتتاح سيتم با اذن الله تنزيل موضوع جديد يوضح كل شي من موادت و تحديثات , برعأية Mr.SAUD , Master , iMr.WiFi , ZeZoALGnop , Marco
    1 point
  11. JohnFlowers Freeroam Server was created and founded by JohnFlower / CaveJohnson and was opened in 2010 . Since then it has been known to be a really fun Freeroam Server with just some rules, where players are given the option to freely roam around the city if they want or not. we do not force people to keep it to freeroam some people like to roleplay inside the game while others like to have a little deathmatch from time to time. General Information ☉ Forums : https://ilypetals.net/forum/ ☉ MTA Server IP : mtasa://37.187.79.138:22003 ☉ Join our discord : https://discord.gg/gGCQRXH Server Rules We only have one rule and that is DON'T BE A Cu*t !! Server Scripts Most Scripts are coded by JohnFlower or Offroader.
    1 point
  12. He is talking about disabling damageproof ... I didn't really work with rhinos, but you could use onVehicleDamage and set the Health by yourself.
    1 point
  13. There is no triggerEvent for changing team. All triggerEvents are global, so that is already happening. It just depends how and under which element you add the handler.
    1 point
  14. الف الف شكر لك اخوي عارف واالله تعبتك معي تسلم م قصرت بس انا جديد في جداول السكل وفي اشياء لسا مو عارفه مشكور اخوي
    1 point
  15. Hello. We with friends play on "test" server, and have BSOD error so often times, when we reconnect. It happens ONLY when we reconnect, and we started to notice it only today. I dont know it gamemode error or MTA, but anyway - BSOD error not should be... BSOD write about file "fairplaykd.sys", and we absolutely dont know what can be a reason. I play MTA ~7 years, and never saw that error or something like a it. Offers "Reinstall GTA" or "Reinstall MTA" will be a useless, because it happened not only with me, and not helps. MTA Diag my log, and my friend: https://upload.mtasa.com/u/233246616/MTADiag-Log-2017-12-2_3-21-24.txt_ https://upload.mtasa.com/u/629191723/MTADiag-Log-2017-12-2_11-18-36.txt_ P.S. It not a Polish server, like a in this topic, lol:
    1 point
  16. عذرا غلطه هممم لكن انا ما احب اعتمد على الويكي بكل شي اعتمد على ذاكرتي عشان اقويها +_+ على العموم هو كذا او كذا كان لازم يراجع الويكي عشان يشوف طريقة الاستخدام+مشكور للتنبيه يقلبي
    1 point
  17. Hi, i hope my eyes aren't broken When i look at this GUI i see a blure effect or something, can u fix that or how can i fix that ? I use the updated version. https://imgur.com/a/4rWPr
    1 point
  18. شرح كافي و ووافي @Master_MTA على ما ظن انه عندك غلطي الطيب * وين النجمة ؟
    1 point
  19. From the same uploader guy "Zabpehely" as Tails as mine script was stolen even my map-model here is the script (included model files): https://community.multitheftauto.com/index.php?p=resources&s=details&id=15045 also my killstreak images: https://community.multitheftauto.com/?p=resources&s=details&id=15042 ---- proof video over 1 year ago when the map was in un-compiled form: https://www.youtube.com/watch?v=5elb32JmZDY DONE
    0 points
  20. انا ما ازعل لكن شي ما يخش العقل تحملني غلط غيري بطريقة مدري كيف و يوم ارد عليك و يوضح كل شي تقول لي عع العموم انا اوسكار ايش المشكلة طيب اوسكار مو اوسكار انا مو انا كلام ما يخش العقل ذا كان المفروض بدال ما تقول عع العموم انا اوسكار تقول اها فهمت او اعذرني ما انتبهت ما تجي تقول لي انا اوسكار موفق ******
    0 points
  21. اظن كودي صح و ما في خطاء + كودك يعطيه فلوس ما يحط الفلوس يعني كالتالي لو فلوسو الداتا 0 و جت انت عطيتو 100 فلوس داتا هتصير الفلوس حقت اللعبه 100 تمام ما في مشكله بس نيجي هنا بقا لو فلوسو الداتا 100 و انت عطيتو فلوس داتا 100 كمان المفروض تصير فلوسو الداتا 200 بس انت هنا مستعمل فانكشن اعطاء الفلوس يعني هتصير 300 و نفس الحكايه لو الفلوس قلت لو فلوسو الداتا 100 و انت اخدت منو 50 هتصير الفلوس حقت اللعبه 150 مو 50 لهيك بدل givePlayerMoney ب setPlayerMoney
    0 points
×
×
  • Create New...