Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 28/06/17 in all areas

  1. Have you ever experienced the awkward moment when you had to check your large map to see which direction you have to go? This resource lets you make important blips visible on players' screen, something you would see in games like Watch Dogs or Assassin's Creed. The only thing you have to do is set a "blip.visibleOnScreen" element data to true for a blip you would like to make visible, and the blip will be always on your screen, aiming towards the position of the blip. Check the examples given in the script. This DOES work on every resolution, blips won't go out of screen, so no need to be afraid or edit because of that. You can see the distance between the blip and you under the blip image as well. Edit this resource however you want, all I ask for is to leave the credits for me. (I used different blip images from my radar resource on the pictures, feel free to change them.) QUICK UPDATE: Made the distance numbers more easy to read by adding convertNumber function - before: 3328 | after: 3,328 Video preview (sorry for the bad video quality, I don't know why it is that bad): Screens: Changelog: UPDATE (1.0.1): - Made the distance numbers more easy to read by adding convertNumber function - before: 3328 | after: 3,328 UPDATE (1.0.2): - Removed leftover unnecessary lines from the script that I needed for debug used for my radar UPDATE (1.0.3): - Added possibility to disable backgrounds with a variable - Disabled distance check on the Z axis, since this is a 2D display - textOffset works automatically now (you don't have to change that if you disable the background or change the image/background sizes) UPDATE (1.0.4): - Fixed a typo UPDATE (1.0.5): -Fixed typos -Improved fading (not sketchy anymore, fades perfectly and smooth) -Removed unnecessary lines Download: https://community.multitheftauto.com/index.php?p=resources&s=details&id=14531
    1 point
  2. Hello, We, the eXo-Reallife team, would like to release a module that is also used on our server. It is a pathfinding module developed by Jusonex and StiviK. The module uses the A * algorithm. (https://en.wikipedia.org/wiki/A*_search_algorithm) We use this for our GPS: Why did we develop a module for this and did not simply write a script? This has a very simple reason. The module calculates the routes in your own threads, which has the advantage that it is much faster than a script, and secondly, you can calculate how much routes as you want side by side. This will not cause any lags etc.! What are the features of the module? The module can load several graphs / nodes side by side The module calculates the routes in its own threads Very useful API functions (such as findNodeAt or getNodeNeighbors) What are the main features? int loadPathGraph (String pathToGraphFile) This function loads the graph from the given file and returns a GraphId which you need for all other functions. If something does not work, false is returned. bool findShortestPathBetween (int graphId, float startX, float startY, float startZ, float endX, float endY, float endZ, function callback) This function finds the shortest route between the points. (Unfortunately, no vectors can be handed over!) The callback function is called when the calculation is finished. As an argument, either a table is returned that contains all nodes, or false if no route is found. bool unloadPathGraph (int graphId) You can use this function if you no longer need and want to unload the graph, it returns true if everything is fine, false if an error has occurred. You will find all the other functions that are included in our documentation. Why is the eXo team releasing all this? Well, that has the simple reason, we want to share our work with others and not just keep it for us! We hope we can enrich you with it and vlt. Even help! Where can I download the module? The whole module is open-source and can be viewed in our GitHub organization. It's released under the MIT License. GitHub organization: https://github.com/eXo-MTA Repository: https://github.com/eXo-MTA/ml_pathfind Download the module (Windows / Linux): https://github.com/eXo-MTA/ml_pathfind/releases Nodes of all roads in SA: https://github.com/eXo-MTA/ml_pathfind/blob/master/test/sa_nodes.json If you find any mistakes or suggestions, you can simply create a new issue and we will look into it. So now that's it, have fun with the module! - StiviK and the eXo-Reallife team (Original thread in German: https://www.mta-sa.org/thread/36365-release-mta-sa-pathfinding-module/?postID=407938#post407938)
    1 point
  3. Here's a new shader texture replacement resource: https://community.multitheftauto.com/index.php?p=resources&s=details&id=14436 *Note: your vehicle models must be UV mapped/wrap compatible for it to work, default included infernus.dff is NOT working for that reason and is just a placeholder. (if I get to, might add a working UV mapped model to resource in update at a later point) It allows you to load textures onto vehicles (even for unique instances; same ID and vehicle, different for each player) and vehicle wraps *(see image below for example so you get what I mean.. unique vehicle print)* Also provides you with a learning tool on how to make things like this work with scripting and FX, the technique used here takes NO performance toll on MTA, as it uses GTA texture reference so it will be equal in load. Example as named: (there's also smaller sample icons/images within the resource) The above image is more like a new PAINTJOB.. Also I'd like to give fair credits to @Ren_712 for finishing this custom request to me a while ago, (I went to him because he's reputable in the field of shaders/fx scripting) he created this for especially me, (It doesn't exist nor was published anywhere, he made it from scratch and I paid for it) but it was collecting dust on my HDD so a pity to not share it if I wasn't going to use it. This resource reflects his shader skills, not mine.
    1 point
  4. مسوي مليون موضوع !!!!!!!
    1 point
  5. This should work: function wasted (killer, weapon, bodypart) if ( killer == localPlayer ) then local sound = playSound("sound/sound.wav") setSoundVolume( sound, 0. ) end end addEventHandler("onClientPlayerWasted", root, wasted)
    1 point
  6. بالنسبة للاعتزال انا تقريباً سحبت على اللعبة ادخل بالشهر مره يعني مو اعتزلت العب فيها لكن تركت البرمجة ولكن بسبب اللعبة : صرت اعرف لغات كثيرة جداً HTML , javascript , Lua
    1 point
  7. You have to check if the killer is the local player.
    1 point
  8. You make the clientside function to draw the text, make an event, trigger the event from serverside for the ppl in the gang
    1 point
  9. مالقيته ، كتبت افضل سيرفر حياة طلعلي 54 واحد
    1 point
  10. Script has 5 parchments. These;Extra Health:- When you bought a parchment from the extra health section, the parchment increases your maximum health according of the parchment quality you bought. Your money will not be refunded if you cancel.Heal:- When you bought a parchment from the heal section, your health increases in the amount specified in the specified repetition time. Your money will not be refunded if you cancel.Prevent Damage:- When you bought a parchment from the prevent damage section, the damage you receive is reduced at the specified rates. Falling, drowning and so on are not included. Your money will not be refunded if you cancel.Extra Damage:- When you bought a parchment from the extra damage section, when you damage a car or a player with a weapon, your damage increases in the specified rate. Your money will not be refunded if you cancel.Money:- When you bought a parchment from the money section, the money you give to buy the parchment increases in the specified and the money is returned to you when the time is up. Your money will be refunded if you cancel. I think it would be useful for freeroam servers. Comment if you encounter an error. Click for download İmages Version 1.0.0 #CrawL helped me for testing script. Thanks.
    1 point
  11. مشكور على ردك يعسل ويمكن يكون صحيح لكن ذكرت بكلامي ان المبرمج ذا مو مبتدئ انا مابذكر اسمه لكنه معروف يعني مستحيل يكون مايرتب الاكواد او شيء من ذا عالعموم مشكورين
    1 point
  12. Funny you add this 1 day after we released ours.
    1 point
  13. Just a little tip. Use development mode. So on admin panel, you have a command line, use either that or write a script. setDevelopmentMode(true) -- client side command then in the ingame console (F8): showcol maaagiiic
    1 point
  14. That means that the group is not existing. Try it with big A. So aclGetGroup("Admin")
    1 point
  15. how to make create vehicle in certaion postion and go to job to spawn the vehicle
    1 point
  16. debugscript 3 غير معرفة camera سطر 20
    1 point
  17. 1 point
  18. ربنا معاك مصير كل واحد فى النهايه اعتزال
    1 point
  19. انا كخبير في اللغة ايضا ساتركها لانه يوجد شيء بها
    1 point
  20. خذني معك اللعبة صارت بيييييييييييييييييييييييييييييييييي
    1 point
  21. The setup only works if you have MTA Server & Client 1.3.5 installed.
    1 point
×
×
  • Create New...