404rq / GTW-RPG

The lightweight and realistic game mode for Multi Theft Auto with features such as Civilians, Law and criminals, Gang wars and much more
https://www.404rq.com
BSD 2-Clause "Simplified" License
31 stars 45 forks source link

How to configure the resources to start with the server #3

Closed ghost closed 9 years ago

ghost commented 9 years ago

I never understood how the MOD to run

ghost commented 9 years ago

mtaserver <resource src="?" startup="1" protected="0" /

paa93 commented 9 years ago

Assuming you have the Multi Theft Auto server software available there are two ways to start the mod, first you need to copy all the folders into mods/deathmatch/resources/ (from server root), then you start the server. (Use /refresh if it's already running). And then "/start NameOfResource". What you have there is the file "mtaserver.conf" in mods/deathmatch/ allowing you to set up which resources should start together with the server.

All you need to add in the src property is the name of the resources you would like to start, that reminds me that we should make an installation guide as it takes some time writing all those config lines for this whole project. For now you may use this:

<!-- Important imports -->
<resource src="GTWgui" startup="1" protected="1" />

<!-- GTW resources -->
<resource src="GTWantispam" startup="1" protected="0" />
<resource src="GTWchat" startup="1" protected="0" />
<resource src="GTWfarmer" startup="1" protected="0" />
<resource src="GTWfastfood" startup="1" protected="0" />
<resource src="GTWfisher" startup="1" protected="0" />
<resource src="GTWhelp" startup="1" protected="0" />
<resource src="GTWmechanic" startup="1" protected="0" />
<resource src="GTWphone" startup="1" protected="0" />
<resource src="GTWplayerblips" startup="1" protected="0" />
<resource src="GTWrob" startup="1" protected="0" />
<resource src="GTWsmoke" startup="1" protected="0" />
<resource src="GTWtrain" startup="1" protected="0" />
<resource src="GTWtrainhorn" startup="1" protected="0" />
<resource src="GTWturf" startup="1" protected="0" />
<resource src="GTWturnsignals" startup="1" protected="0" />
<resource src="GTWupdates" startup="1" protected="0" />
<resource src="GTWvehicleshop" startup="1" protected="0" />
<resource src="GTWweather" startup="1" protected="0" />```

Startup="1" force the resource to start together with the server and protected="1" prevent you from stopping the resource. Hope that helped you.

ghost commented 9 years ago

Thank you

ghost commented 9 years ago

only the strange black screen

ghost commented 9 years ago

maps where to put?

paa93 commented 9 years ago

Maps works like resources, just keep the project file tree structure from this page.

ghost commented 9 years ago

Please use a proper and informative title that may help others with the same issue. I'm leaving this open now for further questions.

paa93 commented 9 years ago

Information has been added in the file Installation.md in main, consider this as resolved.