Jump to content

Adolfram

Members
  • Posts

    57
  • Joined

  • Last visited

Everything posted by Adolfram

  1. Hey, thanks a lot! This should do.
  2. I don't really see how this would work over http but I'll look into modules. Thanks.
  3. I'm afraid it is not. I've set up a docker environment for my dev/prod servers and the only way I can distinguish dev and prod is the ports.
  4. Is there a way to get/set environment variables in MTA Lua? I've tried os.getenv but it errors for "unsecure function calling".
  5. Hello, I've been trying to install tunable car mods on my MTA server but it doesn't seem to load any texture when loading the tunable parts' dff files. I tried every ordering: Load TXD before tunable parts' DFF, Load tunable parts' DFF before TXD, Load TXD, DFF and then tunable parts' DFF Nothing seems to work. One thing caught my interest though. No matter how I order downloading, if I completely close MTA and relaunch the game, it seems to work flawlessly. And after restarting the script for several times it breaks again. Has anyone experienced this? engineImportTXD returns false btw.
  6. Thanks! We are trying to take things as fun as we can to avoid boredom (for ourselves and players). There is nothing really beyond "it's just a game" mindset and it has really been paying off. After all, we are also joining the server to have some fun like everyone else. Also UPDATE We changed the fishing a bit, you have to challenge the fish to take its life. And flesh.
  7. mtasa://51.254.235.204:22004 Introduction: Forseti is an old school Freeroam/RPG with a retro theme. We wanted to re-capture the nostalgia of GTA San Andreas. Well, what can you do in this server? Let's give you some examples. You can: Buy houses, change property name, lock/unlock them, set them for sale, and change their price & more. Buy vehicles, add unique upgrades, park them, change their price and set them for sale, etc. Trade your vehicles with other players, buy and sell them for amounts you set. This includes new vehicles we added ourselves, as well as new upgrades. You can create or join gangs and fight with others for very valuable areas on the map. You can capture or invade gang bases and make use of the amazing features they have. You can buy gang vehicles for your base, buy ammo from your base for a cheaper price, upgrade your base protection, add homing missiles that will protect you from attackers. We also went ahead and re-balanced/replaced some weapons that were inferior to encourage more players get into these big fights. It's worth mentioning that these fights are completely optional and if you want to play more casually, you can completely avoid them if you are not interested. The gang bases are located in LV only. Cut the crap, how do I make money? We have a few options. You can press 'F3' to open GPS menu and go to mission locations. Driving a taxi: You can pick up customers and drop them off where they want to go. Simple and efficient. Fishing: You can buy a fishing rod for $50 from fishermen at coast areas and fish anywhere you want. Just press 'B' and wait for the fish to bite, then press 'B' again to reel them in. You will get a unique fish depending on server time and weather. Let's not spoil it further. Press 'I' to open your fish inventory. Lumberjack Work: You can buy an axe from weapon shops or lumberjacks on the map. Wood you cut will stay in your inventory. You can see how much wood you have by pressing 'I'. You can sell them back to lumberjacks for a good price. Drug Delivery: You can become a dealer at San Fierro and deliver the 'stuff' to junkies. Try not to be seen though. This mission has a built-in leveling system of it's own. More you do it, better rewards you will get. Zombie Purifier: Become a purifier at Area 51 and help the army clean up zombie infested areas. Be careful though. If you get bit you will get infected. It might not end pretty. Deathmatch: Do you have something to prove? Well then. You can join the current deathmatch by pressing 'F2'. You can pick up weapons from the area and fight each other. You get money every time you kill someone, and you get punished for dying." Recovering from a bad divorce? Your wife keeps threatening to take the kids? Went broke already? We got you! Forseti Bank will happly provide you with a loan* and take it back using force if you haven't paid for 4 weeks* in real time! *(1): Loans include interest rate 100% which is a totally humanly amount to take. You should be able to make this kind of money basically working for your all life. But don't worry. Our system has never shown to have failed. *(2): four weeks actually means 1 or 2 hours but don't worry. We will not demand any payment after your death. The map itself is filled with vehicles, why would I pay for one? You can buy vehicles from the car icons on the map ('F11'). Every vehicle shop is different, so don't forget to check other shops if you can't find the vehicle you want. --Player owned vehicles are faster than other vehicles and you can change their properties permanently. You also have full control over them. --You can enter Pay 'N' Spray to paint your vehicle, change headlights, and add upgrades. --Upgrades include: Bumpers, Wheels, Spoilers etc. & Adding a Neon to your vehicle and unlocking burnout. --You can spawn your vehicle, despawn it, lock it, start/stop engine and park it from our main menu. ('F1' or 'M') --You can also use the /car 1, car 2 etc. commands to spawn your vehicles right in front of you. --You can press 'L' to lock and unlock your vehicle from the inside. Other players can't lock your vehicle. --1-2-3-4-5-6-7-8 keys are used for some cool features when you are driving a vehicle. Open trunks, doors, change suspension etc. --If you park your vehicle, it will automatically respawn at the parked location and it will be locked. --You can set your vehicles for sale and other players can buy them. When you trade a vehicle, it'll keep the upgrades. --You can track the vehicle economy on our Discord server. Simply take a look at the #vehicles channel. --Every vehicle has a certain stock and it might run out, so buying vehicles with your spare money and selling them is a viable strategy. --Stocks are added every now and then depending on vehicle rarity, so don't worry, you will get a chance to buy them eventually. --Be careful not to leave your vehicles unlocked, other players can vandalize them at Pay 'N' Spray. ;)", I have 4 children and I have nowhere to live! Help me! You are in luck! We have a house system that's detailed but simple and fun to use. But how do you buy a house and what can you do with it? Houses not only provide you with a safe area, but they have other benefits as well. You can see the houses that are on sale on your map. You can walk to a house's pickup in front of their door and see all the information. When you buy a house, you will be granted full control over it. Such as: --If your house is a business, ALL money that are spent in there are yours. --Example: If you own LS Bistro you will gain all the money other players spend there. --You can set any house you own as your spawn point. If you die, you will respawn at your bed. --You will not take damage in your own house. --You can rename your property to whatever you want. --You can lock and unlock your house for other players. Don't want to be bothered? Lock it. --You can set your house on sale or take it off the sale for other players. Bought a house for 35k and you want to sell it for 35m? It's scummy, but go ahead. --You can change your house's sale value. Make it more expensive or cheaper. --You can instantly sell it back for a little less value. Took a loan and can't pay back? Maybe there's a way out. Did I say loans? That's a whole another thing, let's get back to our topic. You can see the houses you own on your main menu ('F1' or 'M') If you want to see where your house is located, clicking on it will start GPS.", I feel alone in this cold world! Someone take me in! Don't worry, you can join a gang or make your own for 50k. A gang leader can: --Invite players --Kick members --Change member ranks --Invade other gang bases --Change gang name --Change gang tag --Change gang color --Set aside some money for other members to spend on stuff --Upgrade gang gates, make them more resistant to explosions --Buy homing missiles that will attack incoming hostiles Capturing a gang base has a lot of good benefits. Such as spawning it as your spawn point, a steady money stream, buying weapons for cheaper, or using special gang vehicles. Note: You can ping a location on the map for your gang mates. (F11 + X + Right click) That's cool and all, but I got banned in every server I played on. What are the rules? We believe strict rules kill the fun. You are allowed to do anything you want and mess around as long as you aren't ruining it for others. That's all? No. We have a lot of small details and more big features that will make the server feel alive. GTA San Andreas interiors with their unique uses, walking food vendors and vehicles, automated trains that will take a break at stations, custom maps, some mechanical changes, fitting unique weather cycles for every state of it's own that will change on a rotation and much more. So go ahead! Do some fishing for random loot, cut the trees around the map, drive a taxi for NPCs, smuggle drugs or help the army clean up zombie infested areas. There's a bit too much to write about, so we will let you experience them on your own. No point in turning this into a book. Here are some random screenshots from the server we like:
  8. I have burnt the last 3 brain cells I have left and am probably doing something terribly wrong. I will come back to this tomorrow. Thanks for your help @IIYAMA.
  9. I mean I can try that but I doubt this will do any help because the converter starts after the request which happens to be the playSound function. Here is my node.js code to help better understanding: var http = require('http'), fileSystem = require('fs'), path = require('path'); const url = require('url'); var Downloader = require("./downloader"); var dl = new Downloader(); //Configure YoutubeMp3Downloader with your settings http.createServer(function (request, response) { const queryObject = url.parse(request.url, true).query; if (!queryObject['ytId']) { response.writeHead(404); response.end("File not found."); return; } var ytId = queryObject['ytId']; var filePath; if (fileSystem.existsSync(path.join("/opt/ytdl/mp3", `${ytId}.mp3`))) { console.log(`${ytId} already exists. not downloading`); filePath = path.join("/opt/ytdl/mp3", `${ytId}.mp3`); var stat = fileSystem.statSync(filePath); response.writeHead(200, { 'Content-Type': 'audio/mpeg', 'Content-Length': stat.size }); var readStream = fileSystem.createReadStream(filePath); // We replaced all the event handlers with a simple call to readStream.pipe() readStream.once('end', function () { console.log("readstream ended"); fileSystem.unlink(filePath, function () { console.log(filePath + "downloaded and deleted"); }); }); readStream.pipe(response, {end: true}); } else { console.log(`download for ${ytId} begins`); dl.getMP3({ videoId: ytId, name: `${ytId}.mp3` }, function (err, res) { if (err) { response.writeHead(400); response.end(err); } else { console.log("Song was downloaded: " + res.file); filePath = (res.file); var stat = fileSystem.statSync(filePath); response.writeHead(200, { 'Content-Type': 'audio/mpeg', 'Content-Length': stat.size }); var readStream = fileSystem.createReadStream(filePath); // We replaced all the event handlers with a simple call to readStream.pipe() readStream.once('end', function () { console.log("readstream ended"); fileSystem.unlink(filePath, function () { console.log(filePath + "downloaded and deleted"); }); }); readStream.pipe(response, {end: true}); } }); } }) .listen(2000); console.log("Yt downloder listening on :2000") Sorry for the noob code, I'm a .NET geek.
  10. Where should I put the delay? Node.js or MTA?. How can I put delay on playSound? I didn't understand your suggestion sadly
  11. I am sure I'm fully streaming. The response is ended after the download is complete. Do you want to see the node.js code?
  12. Hey man sorry for creating a topic before trying long enough. I have found a solution by using another npm package which serves as a streamer (https://www.npmjs.com/package/youtube-audio-stream for the reference). But yeah, I made sure I returned a response after the file was created and made sure of that. I needed to fire playSound twice for it to work. It is weird but I'm glad I didn't solve it in that way.
  13. So I made a converter(youtube to mp3) app using node.js and hosted in an external url. But the problem is, playSound does not wait for my app to respond and naturally, it does not play the audio. What might be the cause of this problem?
  14. Adolfram

    Email

    you need to set yourself up with a webserver and a mailserver to be able to make this work.
  15. you can migrate databases through mysql
  16. Adolfram

    [REL]Drone

    UPDATE Made the script completely English by default. Updated the camera functions and changed the hotkey from "fire" to "b". All of the settings above can be changed in config > settings.xml.
  17. Adolfram

    [REL]Drone

    Thanks guys, feel free to recommend anything for the script.
  18. Adolfram

    [REL]Drone

    Thanks to everyone for the support. I have found a big performance killer in the old script so I strongly recommend you to download the latest version of it. I'm sorry for the problems that may have been caused...
  19. Adolfram

    [REL]Drone

    FEATURES Compatible with all gamemodes. A monitor that allows the user to view the drone's camera. First person / Third person drone monitor. /drone - starts drone /droned - stops drone MEDIA https://community.multitheftauto.com/index.php?p=resources&s=details&id=13056
  20. Hello, I am sharing all my scripts as I am not interested in scripting for MTA again so this is another one. You can add more maps on shared/maps.lua. I have added an option for spawn handling, by default it's disabled but if you want to activate this handler you need to change the line in shared/maps.lua to SPAWN_HANDLER = true. Script allows players to create rooms so that other could join. PvP mode has only 1 weapon option while TDM gives 3. I couldn't test the script as it's not a one man thing but I'm pretty sure it'll work just fine. Although if you run into any problems you can just reply to this topic and I'll try to fix it as soon as I'm available. Enjoy! INSTALLATION The script has 3 parties so you need to start engines first, then infobox and then duel. Download link: https://community.multitheftauto.com/index.php?p=resources&s=details&id=14770
  21. Adolfram

    [REL] Tune

    This tool allows you to attach objects of SA on your vehicle, save templates and use them again. If you want to set it for only admins, check server/globals.lua. The command is /tune but you can change it on config.lua. Download link: https://community.multitheftauto.com/?p=resources&s=details&id=14769
  22. Hello there, I am with you with LVDM gamemode. It's a Deathmatch-like script. I've left MTA for a couple months now so it has its missing things, not technically though, everything works fine with zero errors. I'm talking about the ideal part, such as, usage of money is limited, the ways to earn money is also. If you could add some features into it you'll be fine, I guess. About the code, it's not really "clean" as it was not the plan to publish it in the first place. But once you get used to it, you'll get the mechanism and make changes very easily. REQUIREMENTS -A MySQL server -A MTA server (obviously) -Changes in [Files]\[sacrum]\database\database.lua INSTALLATION -First things first, make sure you make your changes in mtaserver.conf I am providing and then add it on your server. -Grab a MySQL server and install [Files]\[sacrum]\lvdm_core\core.sql -Put your MySQL details into [Files]\[sacrum]\database\database.lua -You might wanna change [Files]\[sacrum]\lvdm_helpmanager\helpmanager_list.lua ABOUT I've started the project more than 1 year ago, with hope to enjoy it with some friends as we are more used to Deathmatches, not as in Race but with guns. Completed the gamemode and then I got busy with work so it went downhill real quick. It has its potentials if you take care of the server and do what needs to be done. GAMEMODE -Gameplay: There are 7 classes in the gamemode, selected after you register. Each and every class has its own ability which can be activated by the player. For instance, a player in sniper class can go stealth mode and gain invisibility. Weapons are also given by the player's class. Although you can get more weapons after you kill a player and collecting their weapons. Of course, there is a weapon list and you need to add your desired weapons on there to be able to collect them. You can organize your list at Emmet's place. (the brown colt45 icon) -Bases: There are a few gang bases which are capturable by gangs. So that the competetion goes in right direction. A base gives you opportunity to buy weapons inside, be more secure, gain loot every hour. Loot can only be collected by the owner of the clan. -Making Money: Missions; Black Export: Find the wanted vehicle and deliver it to the truck blip. Assassinations: Kill the wanted player., Crack the safe: Find the safe's number to get all the money in it ('$' blip). Deathmatches. Hourly deathmatches. Get money and exp for killing ('D' blip). -Abilities: Abilities are passive buffs additionally selected by the player when reached to certain level. You can choose/manage your abilities at 'Z' blip. Every column on the abilities list needs a certain level limit to unlock. -Housing: You can buy houses around the map and spawn in them. To toggle spawn blips press 'o'. NOTES -You can edit/change the gamemode. -Do not delete ["Changelog"] [Files]\[sacrum]\lvdm_helpmanager\helpmanager_list.lua SCREENSHOTS Download link: https://mega.nz/#!Y4hVnThS!9ewKBvY6WdAQWAD3WoaEAmHOLJz03SJE_gjnJhKZ3ok
×
×
  • Create New...