<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=KennyKiller</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=KennyKiller"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/KennyKiller"/>
	<updated>2026-04-28T11:13:55Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AddResourceConfig&amp;diff=29263</id>
		<title>AddResourceConfig</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AddResourceConfig&amp;diff=29263"/>
		<updated>2012-01-31T08:10:45Z</updated>

		<summary type="html">&lt;p&gt;KennyKiller: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function adds a new empty config file to an existing resource.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
xmlnode addResourceConfig ( string filePath, [ string filetype = &amp;quot;server&amp;quot; ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''filePath:''' The [[filepath]] of the file to be created in the following format: '''&amp;quot;:resourceName/path&amp;quot;'''. 'resourceName' is the name of the resource the file is in, and 'path' is the path from the root directory of the resource to the file.&lt;br /&gt;
:For example, if you want to create a config named 'settings.xml' in the resource 'ctf', it can be created from another resource this way: ''addResourceConfig(&amp;quot;:ctf/settings.xml&amp;quot;, &amp;quot;server&amp;quot;)''.&lt;br /&gt;
:If you want to create the file in the current resource, only the file path is necessary, e.g. ''addResourceConfig(&amp;quot;settings.xml&amp;quot;, &amp;quot;server&amp;quot;)''.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''filetype:''' a string indicating whether the file is serverside (&amp;quot;server&amp;quot;) or clientside (&amp;quot;client&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the new config's root [[xmlnode]] if the config was added successfully, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server Example&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onStart()&lt;br /&gt;
   addResourceConfig(&amp;quot;:ctf/settings.xml&amp;quot;, &amp;quot;server&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onResourceStart&amp;quot;,getResourceRootElement(getThisResource()),onStart)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Resource_functions}}&lt;/div&gt;</summary>
		<author><name>KennyKiller</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AddResourceConfig&amp;diff=29262</id>
		<title>AddResourceConfig</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AddResourceConfig&amp;diff=29262"/>
		<updated>2012-01-31T08:10:35Z</updated>

		<summary type="html">&lt;p&gt;KennyKiller: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function adds a new empty config file to an existing resource.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
xmlnode addResourceConfig ( string filePath, [ string filetype = &amp;quot;server&amp;quot; ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''filePath:''' The [[filepath]] of the file to be created in the following format: '''&amp;quot;:resourceName/path&amp;quot;'''. 'resourceName' is the name of the resource the file is in, and 'path' is the path from the root directory of the resource to the file.&lt;br /&gt;
:For example, if you want to create a config named 'settings.xml' in the resource 'ctf', it can be created from another resource this way: ''addResourceConfig(&amp;quot;:ctf/settings.xml&amp;quot;, &amp;quot;server&amp;quot;)''.&lt;br /&gt;
:If you want to create the file in the current resource, only the file path is necessary, e.g. ''addResourceConfig(&amp;quot;settings.xml&amp;quot;, &amp;quot;server&amp;quot;)''.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''filetype:''' a string indicating whether the file is serverside (&amp;quot;server&amp;quot;) or clientside (&amp;quot;client&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the new config's root [[xmlnode]] if the config was added successfully, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server Example&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onStart()&lt;br /&gt;
   addResourceConfig(&amp;quot;:ctf/settings.xml&amp;quot;, &amp;quot;server&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onResourceStart&amp;quot;,getResourceRootElement(getThisResource()),onStart)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client Example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onStart()&lt;br /&gt;
   addResourceConfig(&amp;quot;:ctf/settings.xml&amp;quot;, &amp;quot;client&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;,getResourceRootElement(getThisResource()),onStart)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Resource_functions}}&lt;/div&gt;</summary>
		<author><name>KennyKiller</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AddResourceConfig&amp;diff=29261</id>
		<title>AddResourceConfig</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AddResourceConfig&amp;diff=29261"/>
		<updated>2012-01-31T08:10:08Z</updated>

		<summary type="html">&lt;p&gt;KennyKiller: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
{{Needs Example}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function adds a new empty config file to an existing resource.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
xmlnode addResourceConfig ( string filePath, [ string filetype = &amp;quot;server&amp;quot; ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''filePath:''' The [[filepath]] of the file to be created in the following format: '''&amp;quot;:resourceName/path&amp;quot;'''. 'resourceName' is the name of the resource the file is in, and 'path' is the path from the root directory of the resource to the file.&lt;br /&gt;
:For example, if you want to create a config named 'settings.xml' in the resource 'ctf', it can be created from another resource this way: ''addResourceConfig(&amp;quot;:ctf/settings.xml&amp;quot;, &amp;quot;server&amp;quot;)''.&lt;br /&gt;
:If you want to create the file in the current resource, only the file path is necessary, e.g. ''addResourceConfig(&amp;quot;settings.xml&amp;quot;, &amp;quot;server&amp;quot;)''.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''filetype:''' a string indicating whether the file is serverside (&amp;quot;server&amp;quot;) or clientside (&amp;quot;client&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the new config's root [[xmlnode]] if the config was added successfully, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server Example&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onStart()&lt;br /&gt;
   addResourceConfig(&amp;quot;:ctf/settings.xml&amp;quot;, &amp;quot;server&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onResourceStart&amp;quot;,getResourceRootElement(getThisResource()),onStart)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client Example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onStart()&lt;br /&gt;
   addResourceConfig(&amp;quot;:ctf/settings.xml&amp;quot;, &amp;quot;client&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;,getResourceRootElement(getThisResource()),onStart)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Resource_functions}}&lt;/div&gt;</summary>
		<author><name>KennyKiller</name></author>
	</entry>
</feed>