[PXG]Blue Posted September 4, 2015 Share 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 Link to comment
UserToDelete Posted September 11, 2015 Share Posted September 11, 2015 had never thought of this, good job! Link to comment
KariiiM Posted September 12, 2015 Share Posted September 12, 2015 mtaserver.conf do that too but good job Link to comment
[PXG]Blue Posted September 12, 2015 Author Share 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. Link to comment
KariiiM Posted September 12, 2015 Share 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 Link to comment
MTA Team 0xCiBeR Posted September 12, 2015 MTA Team Share 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! Link to comment
KariiiM Posted September 12, 2015 Share 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 Link to comment
[PXG]Blue Posted September 13, 2015 Author Share 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 Link to comment
UserToDelete Posted September 13, 2015 Share Posted September 13, 2015 You cannot access by fileOpen("../mtaserver.conf") ? Link to comment
[PXG]Blue Posted September 13, 2015 Author Share 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. Link to comment
UserToDelete Posted September 13, 2015 Share Posted September 13, 2015 Hmm. Can you try this ../../mtaserver.conf Assuming this path: resources/mtaserverconfigurator/server.lua Link to comment
[PXG]Blue Posted September 14, 2015 Author Share 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.. Link to comment
KariiiM Posted September 14, 2015 Share 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 Link to comment
BluntZ Posted September 28, 2015 Share 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 Link to comment
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