<?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=Famas</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=Famas"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Famas"/>
	<updated>2026-04-28T12:43:37Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCameraInterior&amp;diff=24018</id>
		<title>SetCameraInterior</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCameraInterior&amp;diff=24018"/>
		<updated>2010-07-10T15:28:36Z</updated>

		<summary type="html">&lt;p&gt;Famas: Added comments to the Server example&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
Sets the interior of the local camera. Only the interior of the camera is changed, the local player stays in the interior he was in.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setCameraInterior ( player thePlayer, int interior )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePlayer:''' the player whose camera interior will be set.&lt;br /&gt;
*'''interior:''' the interior to place the camera in.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setCameraInterior ( int interior )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''interior:''' the interior to place the camera in.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the camera's interior was changed successfully, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt; This example make a command to change your cam interior to a selected one. &amp;lt;/strong&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function setCamInt( thePlayer, commandName, intID )&lt;br /&gt;
        if( intID )then -- If there is an ID&lt;br /&gt;
		local seted = setCameraInterior( thePlayer, intID ) -- set the interior to the camera&lt;br /&gt;
                if( seted )then -- If it has been changed correctly&lt;br /&gt;
                        outputChatBox( &amp;quot;Your camera's interior has been set to &amp;quot;..intID, thePlayer ) -- Tell to the player his new camera's interior&lt;br /&gt;
                else -- otherwise&lt;br /&gt;
                        outputChatBox( &amp;quot;Can't change your camera's interior...&amp;quot;, thePlayer, 255, 0, 0 ) -- Tell him the change failed&lt;br /&gt;
                end&lt;br /&gt;
	else -- otherwise &lt;br /&gt;
		outputChatBox( &amp;quot;Syntax: /caminterior [interiorID] &amp;quot;, thePlayer, 255, 0, 0 ) -- Tell him the correct syntax&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;caminterior&amp;quot;, setCamInt )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt; This example make a command to change your cam interior to a selected one. &amp;lt;/strong&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function setCam(thePlayer,command,int)&lt;br /&gt;
    if (int) then&lt;br /&gt;
		local setInt = setCameraInterior(thePlayer,int)&lt;br /&gt;
                if (setInt) then&lt;br /&gt;
                        outputChatBox(&amp;quot;Your camera's interior has been set to &amp;quot;..int,255,255,0)&lt;br /&gt;
                else&lt;br /&gt;
                        outputChatBox(&amp;quot;Can't change your camera's interior...&amp;quot;,255,0,0)&lt;br /&gt;
                end&lt;br /&gt;
	else&lt;br /&gt;
		outputChatBox(&amp;quot;Syntax: /camera [interiorID] &amp;quot;,255,0,0)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;camera&amp;quot;,setCam)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_camera_functions}}&lt;/div&gt;</summary>
		<author><name>Famas</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCameraInterior&amp;diff=22882</id>
		<title>SetCameraInterior</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCameraInterior&amp;diff=22882"/>
		<updated>2010-04-13T16:13:39Z</updated>

		<summary type="html">&lt;p&gt;Famas: Add Server Example&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
Sets the interior of the local camera. Only the interior of the camera is changed, the local player stays in the interior he was in.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setCameraInterior ( player thePlayer, int interior )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePlayer:''' the player whose camera interior will be set.&lt;br /&gt;
*'''interior:''' the interior to place the camera in.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setCameraInterior ( int interior )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''interior:''' the interior to place the camera in.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the camera's interior was changed successfully, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt; This example make a command to change your cam interior to a selected one. &amp;lt;/strong&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function setCamInt( thePlayer, commandName, intID )&lt;br /&gt;
        if( intID )then&lt;br /&gt;
		local seted = setCameraInterior( thePlayer, intID )&lt;br /&gt;
                if( seted )then&lt;br /&gt;
                        outputChatBox( &amp;quot;Your camera's interior has been seted to &amp;quot;..intID, thePlayer )&lt;br /&gt;
                else&lt;br /&gt;
                        outputChatBox( &amp;quot;Can't change your camera's interior...&amp;quot;, thePlayer, 255, 0, 0 )&lt;br /&gt;
                end&lt;br /&gt;
	else&lt;br /&gt;
		outputChatBox( &amp;quot;Syntax: /caminterior [interiorID] &amp;quot;, thePlayer, 255, 0, 0 )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;caminterior&amp;quot;, setCamInt )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--TODO&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_camera_functions}}&lt;br /&gt;
[[Category:Needs Example]]&lt;/div&gt;</summary>
		<author><name>Famas</name></author>
	</entry>
</feed>