<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.hoggitworld.com/index.php?action=history&amp;feed=atom&amp;title=DCS_hook_onPlayerTryChangeSlot</id>
		<title>DCS hook onPlayerTryChangeSlot - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.hoggitworld.com/index.php?action=history&amp;feed=atom&amp;title=DCS_hook_onPlayerTryChangeSlot"/>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=DCS_hook_onPlayerTryChangeSlot&amp;action=history"/>
		<updated>2026-04-24T11:33:33Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.hoggitworld.com/index.php?title=DCS_hook_onPlayerTryChangeSlot&amp;diff=14807&amp;oldid=prev</id>
		<title>Grimes at 22:58, 22 February 2026</title>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=DCS_hook_onPlayerTryChangeSlot&amp;diff=14807&amp;oldid=prev"/>
				<updated>2026-02-22T22:58:31Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 22:58, 22 February 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l29&quot; &gt;Line 29:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 29:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160;  True: Allows the user into the slot&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160;  True: Allows the user into the slot&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160;  False prevents the user from entering the slot.&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160;  False prevents the user from entering the slot.&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#160;  nil:&amp;#160; Does nothing. Will allow additional hooks using this callback to be checked. &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|reqType1= number&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|reqType1= number&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Grimes</name></author>	</entry>

	<entry>
		<id>https://wiki.hoggitworld.com/index.php?title=DCS_hook_onPlayerTryChangeSlot&amp;diff=12899&amp;oldid=prev</id>
		<title>Grimes: Created page with &quot;{{Template:DCS_hooks_callbacks  |fName= onPlayerTryChangeSlot  |vNum= 2.5.0  |par1= hook  |par2=   |par3=   |par4=  |desc= Occurs when a player clicks on...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=DCS_hook_onPlayerTryChangeSlot&amp;diff=12899&amp;oldid=prev"/>
				<updated>2021-05-15T01:28:06Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Template:DCS_hooks_callbacks  |fName= onPlayerTryChangeSlot  |vNum= 2.5.0  |par1= &lt;a href=&quot;/index.php?title=DCS_server_hooks&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;DCS server hooks (page does not exist)&quot;&gt;hook&lt;/a&gt;  |par2=   |par3=   |par4=  |desc= Occurs when a player clicks on...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Template:DCS_hooks_callbacks&lt;br /&gt;
&lt;br /&gt;
|fName= onPlayerTryChangeSlot&lt;br /&gt;
&lt;br /&gt;
|vNum= 2.5.0&lt;br /&gt;
&lt;br /&gt;
|par1= [[DCS_server_hooks|hook]]&lt;br /&gt;
&lt;br /&gt;
|par2= &lt;br /&gt;
&lt;br /&gt;
|par3= &lt;br /&gt;
&lt;br /&gt;
|par4=&lt;br /&gt;
&lt;br /&gt;
|desc= Occurs when a player clicks on a new slot to try and enter a given aircraft. Can be used for slot blocking purposes within a mission or to force players access to one team or the other. &lt;br /&gt;
&lt;br /&gt;
playerId is who is attempting to join a slot&lt;br /&gt;
&lt;br /&gt;
side is the coalition the aircraft belongs to&lt;br /&gt;
&lt;br /&gt;
slotId is an identifier for the slot the player is trying to join. The identifier is based on the unitID for a given aircraft. However with multicrew seats the slotId has an additional &amp;quot;_x&amp;quot; added to the unitId to specify which seat it is. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''IMPORTANT: ''' If any value is returned with this function then any other callback that uses it will be ignored. If no choice is to be made, then do NOT return any value. DCS itself uses this callback as part of the multicrew slot interface. By returning true the pilot will not get the prompt or have any choice in allowing another player from entering their aircraft. &lt;br /&gt;
&lt;br /&gt;
|rtnType= nothing&lt;br /&gt;
&lt;br /&gt;
|rtnExample= Value 1: boolean&lt;br /&gt;
   True: Allows the user into the slot&lt;br /&gt;
   False prevents the user from entering the slot.  &lt;br /&gt;
&lt;br /&gt;
|reqType1= number&lt;br /&gt;
&lt;br /&gt;
|reqName1= playerId&lt;br /&gt;
&lt;br /&gt;
|reqType2= number&lt;br /&gt;
&lt;br /&gt;
|reqName2= side&lt;br /&gt;
&lt;br /&gt;
|reqType3= string&lt;br /&gt;
&lt;br /&gt;
|reqName3= slotId&lt;br /&gt;
&lt;br /&gt;
|reqType4= &lt;br /&gt;
&lt;br /&gt;
|reqName4= &lt;br /&gt;
&lt;br /&gt;
|reqType5= &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|optType1= &lt;br /&gt;
&lt;br /&gt;
|optName1= &lt;br /&gt;
&lt;br /&gt;
|optType2=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|related= &lt;br /&gt;
List of Callbacks: {{listOfDCSHooks}}&lt;br /&gt;
&lt;br /&gt;
|examples= Checks a list of players indexed by UCID to see if they have a coalition value assigned to them. If they do and the side is not the same then it denies the request. Otherwise it creates the entry with the specified side and does not return the function as to allow any other callback that might check for onPlayerTryChangeSlot to do its code. &lt;br /&gt;
   &lt;br /&gt;
   function myCall.onPlayerTryChangeSlot(playerId, side, slotId)&lt;br /&gt;
       local ucid = net.get_player_info(id, 'ucid')&lt;br /&gt;
       if someList[ucid] and someList[ucid].coa ~= side then&lt;br /&gt;
           return false&lt;br /&gt;
       else&lt;br /&gt;
          someList[ucid] = {coa = side}&lt;br /&gt;
       end&lt;br /&gt;
   end&lt;br /&gt;
|notes= &lt;br /&gt;
}}&lt;br /&gt;
[[Category:DCS Hooks|onPlayerTryChangeSlot]]&lt;/div&gt;</summary>
		<author><name>Grimes</name></author>	</entry>

	</feed>