<?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=Penise73</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=Penise73"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Penise73"/>
	<updated>2026-05-23T23:16:14Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPedOccupiedVehicle&amp;diff=25228</id>
		<title>GetPedOccupiedVehicle</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPedOccupiedVehicle&amp;diff=25228"/>
		<updated>2011-01-21T00:48:39Z</updated>

		<summary type="html">&lt;p&gt;Penise73: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function gets the [[vehicle]] that the ped is currently in, if any.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;vehicle getPedOccupiedVehicle ( ped thePed )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePed''': The [[ped]] whose vehicle you're looking up.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the vehicle that the specified ped is in, or ''false'' if the ped is not in a vehicle or is an invalid ped.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
When a ped enters the 'getcarname' command and is currently in a vehicle, this example outputs the name of the vehicle.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function showVehicleName ( player )&lt;br /&gt;
   local vehicle = getPedOccupiedVehicle ( player )&lt;br /&gt;
   if vehicle then&lt;br /&gt;
      outputChatBox ( &amp;quot;Name of the Vehicle: &amp;quot; .. getVehicleName ( vehicle ), player )&lt;br /&gt;
   else&lt;br /&gt;
      outputChatBox ( &amp;quot;You do not have a Vehicle!&amp;quot;, player, 255, 0, 0, true )&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;getcarname&amp;quot;, showVehicleName )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_ped_functions}}&lt;/div&gt;</summary>
		<author><name>Penise73</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPedOccupiedVehicle&amp;diff=25227</id>
		<title>GetPedOccupiedVehicle</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPedOccupiedVehicle&amp;diff=25227"/>
		<updated>2011-01-21T00:46:01Z</updated>

		<summary type="html">&lt;p&gt;Penise73: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function gets the [[vehicle]] that the ped is currently in, if any.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;vehicle getPedOccupiedVehicle ( ped thePed )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePed''': The [[ped]] whose vehicle you're looking up.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the vehicle that the specified ped is in, or ''false'' if the ped is not in a vehicle or is an invalid ped.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
When a ped enters the 'getcarname' command and is currently in a vehicle, this example outputs the name of the vehicle.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function showVehicleName ( player )&lt;br /&gt;
   local vehicle = getPedOccupiedVehicle ( player )&lt;br /&gt;
      if vehicle then&lt;br /&gt;
         outputChatBox ( &amp;quot;Name of the Vehicle: &amp;quot; .. getVehicleName ( vehicle ), player )&lt;br /&gt;
      else&lt;br /&gt;
         outputChatBox ( &amp;quot;You do not have a Vehicle!&amp;quot;, player, 255, 0, 0, true )&lt;br /&gt;
      end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;getcarname&amp;quot;, showVehicleName )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_ped_functions}}&lt;/div&gt;</summary>
		<author><name>Penise73</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=TextCreateDisplay&amp;diff=25226</id>
		<title>TextCreateDisplay</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=TextCreateDisplay&amp;diff=25226"/>
		<updated>2011-01-21T00:39:39Z</updated>

		<summary type="html">&lt;p&gt;Penise73: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
A [[textdisplay|text display]] is like a canvas that can contain many [[textitem|items of text]]. Each display can be seen by multiple observers (players) and each player can see multiple displays.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;textdisplay textCreateDisplay()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Required Arguments==&lt;br /&gt;
''This function has no arguments.''&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function showTextDisplay ( player, command )&lt;br /&gt;
   local serverDisplay = textCreateDisplay()                             -- create a text display&lt;br /&gt;
   textDisplayAddObserver ( serverDisplay, player )                      -- make it visible to a player&lt;br /&gt;
   local serverText = textCreateTextItem ( &amp;quot;Hello world!&amp;quot;, 0.5, 0.5 )    -- create a text item for the display&lt;br /&gt;
   textDisplayAddText ( serverDisplay, serverText )                      -- add it to the display so it is displayed&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;showText&amp;quot;, showTextDisplay )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Text functions}}&lt;/div&gt;</summary>
		<author><name>Penise73</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=TextCreateDisplay&amp;diff=25225</id>
		<title>TextCreateDisplay</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=TextCreateDisplay&amp;diff=25225"/>
		<updated>2011-01-21T00:39:18Z</updated>

		<summary type="html">&lt;p&gt;Penise73: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
A [[textdisplay|text display]] is like a canvas that can contain many [[textitem|items of text]]. Each display can be seen by multiple observers (players) and each player can see multiple displays.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;textdisplay textCreateDisplay()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Required Arguments==&lt;br /&gt;
''This function has no arguments.''&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function showTextDisplay ( player, command )&lt;br /&gt;
   local serverDisplay = textCreateDisplay()                            -- create a text display&lt;br /&gt;
   textDisplayAddObserver ( serverDisplay, player )                      -- make it visible to a player&lt;br /&gt;
   local serverText = textCreateTextItem ( &amp;quot;Hello world!&amp;quot;, 0.5, 0.5 )    -- create a text item for the display&lt;br /&gt;
   textDisplayAddText ( serverDisplay, serverText )                      -- add it to the display so it is displayed&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;showText&amp;quot;, showTextDisplay )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Text functions}}&lt;/div&gt;</summary>
		<author><name>Penise73</name></author>
	</entry>
</feed>