<?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=Al7arthy</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=Al7arthy"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Al7arthy"/>
	<updated>2026-05-07T01:41:53Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetTeamName&amp;diff=63278</id>
		<title>GetTeamName</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetTeamName&amp;diff=63278"/>
		<updated>2019-07-13T07:07:51Z</updated>

		<summary type="html">&lt;p&gt;Al7arthy: /* مـشـابهــه */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function gets the team name of a team object.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getTeamName ( team theTeam )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[team]]:getName|name|setTeamName}}&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
theTeam: The team you want to retrieve the name of.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example gets the current team of a player, then prints its name to the chatbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function whatTeamAmIOn (source)&lt;br /&gt;
    -- Get the player's team (source is the player who entered the command)&lt;br /&gt;
    local playerTeam = getPlayerTeam(source)&lt;br /&gt;
  &lt;br /&gt;
    if (playerTeam) then -- if he was on a team&lt;br /&gt;
        outputChatBox(getPlayerName(source)..&amp;quot; is on team: &amp;quot;..getTeamName(playerTeam))&lt;br /&gt;
    else&lt;br /&gt;
        outputChatBox(getPlayerName(source).. &amp;quot; isn't on a team&amp;quot;)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Add console command to find your team when 'whatTeamAmIOn' is typed.&lt;br /&gt;
addCommandHandler(&amp;quot;whatTeamAmIOn&amp;quot;, whatTeamAmIOn)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Team_functions}}&lt;/div&gt;</summary>
		<author><name>Al7arthy</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetTeamName&amp;diff=63277</id>
		<title>GetTeamName</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetTeamName&amp;diff=63277"/>
		<updated>2019-07-13T07:07:30Z</updated>

		<summary type="html">&lt;p&gt;Al7arthy: /* الحجج المطلوبة */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function gets the team name of a team object.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getTeamName ( team theTeam )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[team]]:getName|name|setTeamName}}&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
theTeam: The team you want to retrieve the name of.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example gets the current team of a player, then prints its name to the chatbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function whatTeamAmIOn (source)&lt;br /&gt;
    -- Get the player's team (source is the player who entered the command)&lt;br /&gt;
    local playerTeam = getPlayerTeam(source)&lt;br /&gt;
  &lt;br /&gt;
    if (playerTeam) then -- if he was on a team&lt;br /&gt;
        outputChatBox(getPlayerName(source)..&amp;quot; is on team: &amp;quot;..getTeamName(playerTeam))&lt;br /&gt;
    else&lt;br /&gt;
        outputChatBox(getPlayerName(source).. &amp;quot; isn't on a team&amp;quot;)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Add console command to find your team when 'whatTeamAmIOn' is typed.&lt;br /&gt;
addCommandHandler(&amp;quot;whatTeamAmIOn&amp;quot;, whatTeamAmIOn)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==مـشـابهــه==&lt;br /&gt;
{{Team_functions}}&lt;/div&gt;</summary>
		<author><name>Al7arthy</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetTeamName&amp;diff=63276</id>
		<title>GetTeamName</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetTeamName&amp;diff=63276"/>
		<updated>2019-07-13T07:06:15Z</updated>

		<summary type="html">&lt;p&gt;Al7arthy: /* مــثــال */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function gets the team name of a team object.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getTeamName ( team theTeam )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[team]]:getName|name|setTeamName}}&lt;br /&gt;
===الحجج المطلوبة===&lt;br /&gt;
*'''theTeam:''' الفريق اللي تبي تستخرج اسمه&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example gets the current team of a player, then prints its name to the chatbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function whatTeamAmIOn (source)&lt;br /&gt;
    -- Get the player's team (source is the player who entered the command)&lt;br /&gt;
    local playerTeam = getPlayerTeam(source)&lt;br /&gt;
  &lt;br /&gt;
    if (playerTeam) then -- if he was on a team&lt;br /&gt;
        outputChatBox(getPlayerName(source)..&amp;quot; is on team: &amp;quot;..getTeamName(playerTeam))&lt;br /&gt;
    else&lt;br /&gt;
        outputChatBox(getPlayerName(source).. &amp;quot; isn't on a team&amp;quot;)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Add console command to find your team when 'whatTeamAmIOn' is typed.&lt;br /&gt;
addCommandHandler(&amp;quot;whatTeamAmIOn&amp;quot;, whatTeamAmIOn)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==مـشـابهــه==&lt;br /&gt;
{{Team_functions}}&lt;/div&gt;</summary>
		<author><name>Al7arthy</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetTeamName&amp;diff=63275</id>
		<title>GetTeamName</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetTeamName&amp;diff=63275"/>
		<updated>2019-07-13T07:03:48Z</updated>

		<summary type="html">&lt;p&gt;Al7arthy: /* Required Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function gets the team name of a team object.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getTeamName ( team theTeam )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[team]]:getName|name|setTeamName}}&lt;br /&gt;
===الحجج المطلوبة===&lt;br /&gt;
*'''theTeam:''' الفريق اللي تبي تستخرج اسمه&lt;br /&gt;
&lt;br /&gt;
==مــثــال==&lt;br /&gt;
هذا المثال يحصل على فريق اللاعب ويقوم بإرساله في الشات&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function whatTeamAmIOn (source)&lt;br /&gt;
    -- تحصل على الفريق من المصدر اللي هو اللاعب&lt;br /&gt;
    local playerTeam = getPlayerTeam(source)&lt;br /&gt;
  &lt;br /&gt;
    if (playerTeam) then -- اذا كان في فريق&lt;br /&gt;
        outputChatBox(getPlayerName(source)..&amp;quot; في فريق : &amp;quot;..getTeamName(playerTeam))&lt;br /&gt;
    else -- اما اذا كان ماهو بفريق&lt;br /&gt;
        outputChatBox(getPlayerName(source).. &amp;quot; ليس بأي فريق &amp;quot;)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- يعمل عند كتابة الامر التالي &amp;quot;whatTeamAmIOn&amp;quot;&lt;br /&gt;
addCommandHandler(&amp;quot;whatTeamAmIOn&amp;quot;, whatTeamAmIOn)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==مـشـابهــه==&lt;br /&gt;
{{Team_functions}}&lt;/div&gt;</summary>
		<author><name>Al7arthy</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetTeamName&amp;diff=63274</id>
		<title>GetTeamName</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetTeamName&amp;diff=63274"/>
		<updated>2019-07-13T07:01:37Z</updated>

		<summary type="html">&lt;p&gt;Al7arthy: /* Returns */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function gets the team name of a team object.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getTeamName ( team theTeam )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[team]]:getName|name|setTeamName}}&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theTeam:''' The team you want to retrieve the name of.&lt;br /&gt;
&lt;br /&gt;
==مــثــال==&lt;br /&gt;
هذا المثال يحصل على فريق اللاعب ويقوم بإرساله في الشات&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function whatTeamAmIOn (source)&lt;br /&gt;
    -- تحصل على الفريق من المصدر اللي هو اللاعب&lt;br /&gt;
    local playerTeam = getPlayerTeam(source)&lt;br /&gt;
  &lt;br /&gt;
    if (playerTeam) then -- اذا كان في فريق&lt;br /&gt;
        outputChatBox(getPlayerName(source)..&amp;quot; في فريق : &amp;quot;..getTeamName(playerTeam))&lt;br /&gt;
    else -- اما اذا كان ماهو بفريق&lt;br /&gt;
        outputChatBox(getPlayerName(source).. &amp;quot; ليس بأي فريق &amp;quot;)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- يعمل عند كتابة الامر التالي &amp;quot;whatTeamAmIOn&amp;quot;&lt;br /&gt;
addCommandHandler(&amp;quot;whatTeamAmIOn&amp;quot;, whatTeamAmIOn)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==مـشـابهــه==&lt;br /&gt;
{{Team_functions}}&lt;/div&gt;</summary>
		<author><name>Al7arthy</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetTeamName&amp;diff=63273</id>
		<title>GetTeamName</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetTeamName&amp;diff=63273"/>
		<updated>2019-07-13T07:00:41Z</updated>

		<summary type="html">&lt;p&gt;Al7arthy: /* See Also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function gets the team name of a team object.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getTeamName ( team theTeam )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[team]]:getName|name|setTeamName}}&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theTeam:''' The team you want to retrieve the name of.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a string representing the team's name if the team object was valid, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==مــثــال==&lt;br /&gt;
هذا المثال يحصل على فريق اللاعب ويقوم بإرساله في الشات&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function whatTeamAmIOn (source)&lt;br /&gt;
    -- تحصل على الفريق من المصدر اللي هو اللاعب&lt;br /&gt;
    local playerTeam = getPlayerTeam(source)&lt;br /&gt;
  &lt;br /&gt;
    if (playerTeam) then -- اذا كان في فريق&lt;br /&gt;
        outputChatBox(getPlayerName(source)..&amp;quot; في فريق : &amp;quot;..getTeamName(playerTeam))&lt;br /&gt;
    else -- اما اذا كان ماهو بفريق&lt;br /&gt;
        outputChatBox(getPlayerName(source).. &amp;quot; ليس بأي فريق &amp;quot;)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- يعمل عند كتابة الامر التالي &amp;quot;whatTeamAmIOn&amp;quot;&lt;br /&gt;
addCommandHandler(&amp;quot;whatTeamAmIOn&amp;quot;, whatTeamAmIOn)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==مـشـابهــه==&lt;br /&gt;
{{Team_functions}}&lt;/div&gt;</summary>
		<author><name>Al7arthy</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetTeamName&amp;diff=63272</id>
		<title>GetTeamName</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetTeamName&amp;diff=63272"/>
		<updated>2019-07-13T06:59:49Z</updated>

		<summary type="html">&lt;p&gt;Al7arthy: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function gets the team name of a team object.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getTeamName ( team theTeam )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[team]]:getName|name|setTeamName}}&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theTeam:''' The team you want to retrieve the name of.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a string representing the team's name if the team object was valid, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==مــثــال==&lt;br /&gt;
هذا المثال يحصل على فريق اللاعب ويقوم بإرساله في الشات&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function whatTeamAmIOn (source)&lt;br /&gt;
    -- تحصل على الفريق من المصدر اللي هو اللاعب&lt;br /&gt;
    local playerTeam = getPlayerTeam(source)&lt;br /&gt;
  &lt;br /&gt;
    if (playerTeam) then -- اذا كان في فريق&lt;br /&gt;
        outputChatBox(getPlayerName(source)..&amp;quot; في فريق : &amp;quot;..getTeamName(playerTeam))&lt;br /&gt;
    else -- اما اذا كان ماهو بفريق&lt;br /&gt;
        outputChatBox(getPlayerName(source).. &amp;quot; ليس بأي فريق &amp;quot;)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- يعمل عند كتابة الامر التالي &amp;quot;whatTeamAmIOn&amp;quot;&lt;br /&gt;
addCommandHandler(&amp;quot;whatTeamAmIOn&amp;quot;, whatTeamAmIOn)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Team_functions}}&lt;/div&gt;</summary>
		<author><name>Al7arthy</name></author>
	</entry>
</feed>