<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/RO/getCameraTarget?action=history&amp;feed=atom</id>
	<title>RO/getCameraTarget - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/RO/getCameraTarget?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RO/getCameraTarget&amp;action=history"/>
	<updated>2026-05-14T12:18:12Z</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=RO/getCameraTarget&amp;diff=67473&amp;oldid=prev</id>
		<title>Vinyard: Created page with &quot;{{RO/Funcție comună}} __NOTOC__ Această funcție redă un element care corespunde țintei curente (target) aferente camerei unui jucător specificat. (ex. ce anume urm...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RO/getCameraTarget&amp;diff=67473&amp;oldid=prev"/>
		<updated>2020-10-10T08:07:59Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{RO/Funcție comună}} __NOTOC__ Această funcție redă un &lt;a href=&quot;/wiki/Element&quot; title=&quot;Element&quot;&gt;element&lt;/a&gt; care corespunde țintei curente (target) aferente camerei unui jucător specificat. (ex. ce anume urm...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{RO/Funcție comună}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Această funcție redă un [[element]] care corespunde țintei curente (target) aferente camerei unui jucător specificat. (ex. ce anume urmărește) &lt;br /&gt;
==Sintaxă==&lt;br /&gt;
&amp;lt;section class=&amp;quot;server&amp;quot; name=&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;
element getCameraTarget(player thePlayer)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[player]]:getCameraTarget|cameraTarget|setCameraTarget}}&lt;br /&gt;
===Argumente Necesare=== &lt;br /&gt;
*'''thePlayer:''' Jucătorul a cărui cameră doriți să preluați ținta.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section class=&amp;quot;client&amp;quot; name=&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;
element getCameraTarget()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Redare===&lt;br /&gt;
* Redă un [[element]] a țintei (target) dacă funcția a avut succes, sau ''false'' dacă au fost specificat argumente nevalide.&lt;br /&gt;
{{New feature|3|1.0|&lt;br /&gt;
* Redă ''false'' dacă camera este în modul Fixed și nu are un target.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Exemplu== &lt;br /&gt;
Acest exemplu verifică dacă ținta (target-ul) camerei unui jucător este alt jucător, și redă true sau fals în consecință.&lt;br /&gt;
&amp;lt;section class=&amp;quot;server&amp;quot; name=&amp;quot;Server script&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;
function isTargetPlayer(thePlayer)&lt;br /&gt;
    local target = getCameraTarget(thePlayer)&lt;br /&gt;
    if (getElementType(target ) == &amp;quot;player&amp;quot;) then -- dacă target-ul este un jucător&lt;br /&gt;
        return true  -- Redă true&lt;br /&gt;
    else&lt;br /&gt;
        return false -- În caz contrar, redă false&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Vizualizați de asemenea==&lt;br /&gt;
{{RO/Funcții cameră}}&lt;br /&gt;
&lt;br /&gt;
[[EN:getCameraTarget]]&lt;br /&gt;
[[hu:getCameraTarget]]&lt;/div&gt;</summary>
		<author><name>Vinyard</name></author>
	</entry>
</feed>