<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/HU/setCameraInterior?action=history&amp;feed=atom</id>
	<title>HU/setCameraInterior - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/HU/setCameraInterior?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HU/setCameraInterior&amp;action=history"/>
	<updated>2026-05-25T10:53:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=HU/setCameraInterior&amp;diff=58562&amp;oldid=prev</id>
		<title>Surge: Created page with &quot;__NOTOC__ {{Server client function}} 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.  ==Sy...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HU/setCameraInterior&amp;diff=58562&amp;oldid=prev"/>
		<updated>2018-08-26T15:28:41Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ {{Server client function}} 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.  ==Sy...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&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;
{{OOP||[[player]]:setCameraInterior|cameraInterior|getCameraInterior}}&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;
{{OOP||Camera.setInterior|interior|getCameraInterior}}&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(command,int)&lt;br /&gt;
    if (int) then&lt;br /&gt;
		local setInt = setCameraInterior(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 hu}}&lt;br /&gt;
&lt;br /&gt;
[[en:setCameraInterior]]&lt;/div&gt;</summary>
		<author><name>Surge</name></author>
	</entry>
</feed>