[PXG]Blue Posted September 4, 2015 Posted September 4, 2015 (edited) Hello Community! PUT SUGGESTIONS/BUG REPORTS HERE Today i want to show you a small but very useful script, its for people that often need to shut down / restart their servers, it makes it easier and faster to get everything started again, basically, how it works: Once all resources are Started, you type "/getRunningResources" in chat, it will save it to the XML file, if the server crashes, just start my Resource and type "/loadResources" Requirements: The Resource NEEDS permissions OR and accepted ACLRequest to start Resources I will of course check the topic, but I will use github more often I Suggest shutting down my script after starting the resources, as these commands can be used to slow down the server extremely! Commands / Arguments: "/getRunningResources true " = save to xml and save for mtaserver.conf, you can find the code to put into the mtaserver.conf in a file called 'mtaserver.txt', copy the content out of it and paste it into your mtaserver.conf file! "/getRunningResources" only save to xml "/loadResources" Load Resources ( if saved to xml before ) CODE IS NOW ON GITHUB Have Fun! Edited September 28, 2015 by Guest
UserToDelete Posted September 11, 2015 Posted September 11, 2015 had never thought of this, good job!
[PXG]Blue Posted September 12, 2015 Author Posted September 12, 2015 mtaserver.conf do that too but good job I know it works nearly the same, but i had problems adding over 50 scripts to it and adding every single one to it, my script does collect all scripts automaticly.
KariiiM Posted September 12, 2015 Posted September 12, 2015 I know it works nearly the same, but i had problems adding over 50 scripts to it and adding every single one to it, my script does collect all scripts automaticly. Yes, it stay a great idea
MTA Team 0xCiBeR Posted September 12, 2015 MTA Team Posted September 12, 2015 Great idea, maybe add a function to output the same but for the mtaserver.conf format would be great! So then if we wish to directly add them to the mtaserver.conf we wouldn't waste that much time Keep it up!
KariiiM Posted September 12, 2015 Posted September 12, 2015 maybe add a function to output the same but for the mtaserver.conf format would be great! So then if we wish to directly add them to the mtaserver.conf we wouldn't waste that much time This idea is also good, to add them directly to the mtaserver.conf but if im not wrong i don't think its possible
[PXG]Blue Posted September 13, 2015 Author Posted September 13, 2015 maybe add a function to output the same but for the mtaserver.conf format would be great! So then if we wish to directly add them to the mtaserver.conf we wouldn't waste that much time This idea is also good, to add them directly to the mtaserver.conf but if im not wrong i don't think its possible Its not possible to add it to MTAserver.conf But i made a version that saves it in mtaserver.conf format in an TXT file, copy and paste
UserToDelete Posted September 13, 2015 Posted September 13, 2015 You cannot access by fileOpen("../mtaserver.conf") ?
[PXG]Blue Posted September 13, 2015 Author Posted September 13, 2015 You cannot access by fileOpen("../mtaserver.conf") ? I tried that but it doesnt seem to work, maybe you have better luck than me figuring out.
UserToDelete Posted September 13, 2015 Posted September 13, 2015 Hmm. Can you try this ../../mtaserver.conf Assuming this path: resources/mtaserverconfigurator/server.lua
[PXG]Blue Posted September 14, 2015 Author Posted September 14, 2015 Hmm. Can you try this ../../mtaserver.conf Assuming this path: resources/mtaserverconfigurator/server.lua Tried it, seems the mtaserver.conf is not accessable via script..
KariiiM Posted September 14, 2015 Posted September 14, 2015 Tried it, seems the mtaserver.conf is not accessable via script.. It's not possible i tried it too, to be sure ask some MTA developers
BluntZ Posted September 28, 2015 Posted September 28, 2015 Hey Blue , I tried it but its not working , Can you help me how it works ? I added it in game typed /GetRunningResources but nothing happned , I hope you will apply soon , Thanks
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now