<?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=FaLsE+Country</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=FaLsE+Country"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/FaLsE_Country"/>
	<updated>2026-04-04T05:23:17Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DE/getBlipColor&amp;diff=40968</id>
		<title>DE/getBlipColor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DE/getBlipColor&amp;diff=40968"/>
		<updated>2014-07-21T05:22:05Z</updated>

		<summary type="html">&lt;p&gt;FaLsE Country: /* Beispiel */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Diese Funktion gibt Ihnen den Farbwert des Blips wieder, dies funktioniert jedoch nur bei den Standard-Blips mit der Blip-ID 0. Andere Blips ignorieren dies.&lt;br /&gt;
&lt;br /&gt;
== Syntax == &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int int int int getBlipColor ( blip theBlip )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{OOP||getColor||setBlipColor}}&lt;br /&gt;
&lt;br /&gt;
=== Benötigte Argumente ===&lt;br /&gt;
&lt;br /&gt;
*'''theBlip:''' Das Blip von wem Ihr die Farbe haben wollt.&lt;br /&gt;
&lt;br /&gt;
=== Rückgabe ===&lt;br /&gt;
&lt;br /&gt;
Gibt Ihnen 4 Werte wieder im RGBA Format, der maximale Wert beträgt 255. RGBA = Rot, Grün, Blau und Transparenz. Wenn die Transparenz 255 beträgt ist das Blip komplett undurchsichtig, wenn der Wert 0 beträgt ist es komplett durchsichtig.&lt;br /&gt;
&lt;br /&gt;
==Beispiel==&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;
Dieses Script macht alle nicht komplett roten Blips vollständig rot.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Findet alle Blipelemente heraus und fügt sie in eine Table ein&lt;br /&gt;
local allBlips = getElementsByType(&amp;quot;blip&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
for _, blip in ipairs(allBlips) do&lt;br /&gt;
	-- Speichert die Farben des Blips in die Variablen r,b,g,a ein&lt;br /&gt;
	local r,g,b,a = getBlipColor(blip)&lt;br /&gt;
	if ( r ~= 255 and g ~= 0 and b ~= 0 ) then&lt;br /&gt;
		-- Setzt die Farbe des Blips Rot&lt;br /&gt;
		setBlipColor(blip,255,0,0,a)&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;/div&gt;</summary>
		<author><name>FaLsE Country</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DE/getBlipColor&amp;diff=40967</id>
		<title>DE/getBlipColor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DE/getBlipColor&amp;diff=40967"/>
		<updated>2014-07-21T05:20:25Z</updated>

		<summary type="html">&lt;p&gt;FaLsE Country: Created page with &amp;quot;Diese Funktion gibt Ihnen den Farbwert des Blips wieder, dies funktioniert jedoch nur bei den Standard-Blips mit der Blip-ID 0. Andere Blips ignorieren dies.  == Syntax ==   &amp;lt;...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Diese Funktion gibt Ihnen den Farbwert des Blips wieder, dies funktioniert jedoch nur bei den Standard-Blips mit der Blip-ID 0. Andere Blips ignorieren dies.&lt;br /&gt;
&lt;br /&gt;
== Syntax == &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int int int int getBlipColor ( blip theBlip )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{OOP||getColor||setBlipColor}}&lt;br /&gt;
&lt;br /&gt;
=== Benötigte Argumente ===&lt;br /&gt;
&lt;br /&gt;
*'''theBlip:''' Das Blip von wem Ihr die Farbe haben wollt.&lt;br /&gt;
&lt;br /&gt;
=== Rückgabe ===&lt;br /&gt;
&lt;br /&gt;
Gibt Ihnen 4 Werte wieder im RGBA Format, der maximale Wert beträgt 255. RGBA = Rot, Grün, Blau und Transparenz. Wenn die Transparenz 255 beträgt ist das Blip komplett undurchsichtig, wenn der Wert 0 beträgt ist es komplett durchsichtig.&lt;br /&gt;
&lt;br /&gt;
==Beispiel==&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;
Dieses Script macht alle nicht komplett roten Blips vollständig rot.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Findet alle Blipelement heraus und fügt sie in eine Table ein&lt;br /&gt;
local allBlips = getElementsByType(&amp;quot;blip&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
for _, blip in ipairs(allBlips) do&lt;br /&gt;
	-- Speichert die Farben des Blips in die Variablen r,b,g,a ein&lt;br /&gt;
	local r,g,b,a = getBlipColor(blip)&lt;br /&gt;
	if ( r ~= 255 and g ~= 0 and b ~= 0 ) then&lt;br /&gt;
		-- Setzt die Farbe des Blips Rot&lt;br /&gt;
		setBlipColor(blip,255,0,0,a)&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;/div&gt;</summary>
		<author><name>FaLsE Country</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetPedCameraRotation&amp;diff=37340</id>
		<title>SetPedCameraRotation</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetPedCameraRotation&amp;diff=37340"/>
		<updated>2013-10-20T10:06:33Z</updated>

		<summary type="html">&lt;p&gt;FaLsE Country: /* See Also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function sets the camera rotation of a ped.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setPedCameraRotation ( ped thePed, float cameraRotation )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePed:''' The [[ped]] whose camera rotation is to be changed&lt;br /&gt;
*'''cameraRotation:''' The new direction that the ped will walk if you set their forwards control state&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the camera rotation was changed, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;--TODO&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client ped functions}}&lt;br /&gt;
&lt;br /&gt;
addEventHandler ( 'onClientResourceStart', resourceRoot, function ()&lt;br /&gt;
	ped = createPed ( 0, 0,0,3) -- create the ped at the coordinate ( x = 0, y = 0, z = 3 )&lt;br /&gt;
	setPedControlState ( ped, &amp;quot;forwards&amp;quot;, true )&lt;br /&gt;
	&lt;br /&gt;
	addEventHandler ('onClientPedDamage', ped, function () -- add Event when the ped got damaged&lt;br /&gt;
		local rot = getPedCameraRotation ( ped ) -- get the current camera rotation&lt;br /&gt;
		setPedCameraRotation ( ped, rot + 90 ) -- add to the current camerarotation 90 deg.&lt;br /&gt;
	end)&lt;br /&gt;
	&lt;br /&gt;
end)&lt;/div&gt;</summary>
		<author><name>FaLsE Country</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetPedCameraRotation&amp;diff=37339</id>
		<title>SetPedCameraRotation</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetPedCameraRotation&amp;diff=37339"/>
		<updated>2013-10-20T10:05:51Z</updated>

		<summary type="html">&lt;p&gt;FaLsE Country: /* See Also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function sets the camera rotation of a ped.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setPedCameraRotation ( ped thePed, float cameraRotation )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePed:''' The [[ped]] whose camera rotation is to be changed&lt;br /&gt;
*'''cameraRotation:''' The new direction that the ped will walk if you set their forwards control state&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the camera rotation was changed, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;--TODO&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client ped functions}}&lt;br /&gt;
&lt;br /&gt;
addEventHandler ( 'onClientResourceStart', resourceRoot, function ()&lt;br /&gt;
	ped = createPed ( 0, 0,0,3) -- create the ped at the coordinate ( x = 0, y = 0, z = 3 )&lt;br /&gt;
	&lt;br /&gt;
	addEventHandler ('onClientPedDamage', ped, function () -- add Event when the ped got damaged&lt;br /&gt;
		local rot = getPedCameraRotation ( ped ) -- get the current camera rotation&lt;br /&gt;
		setPedCameraRotation ( ped, rot + 90 ) -- add to the current camerarotation 90 deg.&lt;br /&gt;
	end)&lt;br /&gt;
	&lt;br /&gt;
end)&lt;/div&gt;</summary>
		<author><name>FaLsE Country</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetPedCameraRotation&amp;diff=37338</id>
		<title>SetPedCameraRotation</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetPedCameraRotation&amp;diff=37338"/>
		<updated>2013-10-20T10:04:03Z</updated>

		<summary type="html">&lt;p&gt;FaLsE Country: /* See Also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function sets the camera rotation of a ped.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setPedCameraRotation ( ped thePed, float cameraRotation )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePed:''' The [[ped]] whose camera rotation is to be changed&lt;br /&gt;
*'''cameraRotation:''' The new direction that the ped will walk if you set their forwards control state&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the camera rotation was changed, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;--TODO&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client ped functions}}&lt;br /&gt;
&lt;br /&gt;
addEventHandler ( 'onClientResourceStart', resourceRoot, function ()&lt;br /&gt;
	ped = createPed ( 0, 0,0,3) -- create the ped at the coordinate ( x = 0, y = 0, z = 3 )&lt;br /&gt;
	setPedControlState ( ped, &amp;quot;forwards&amp;quot;, true )&lt;br /&gt;
	&lt;br /&gt;
	addEventHandler ('onClientPedDamage', ped, function () -- add Event when the ped got damaged&lt;br /&gt;
		local rot = getPedCameraRotation ( ped ) -- get the current camera rotation&lt;br /&gt;
		setPedCameraRotation ( ped, rot + 90 ) -- add to the current camerarotation 90 deg.&lt;br /&gt;
	end)&lt;br /&gt;
	&lt;br /&gt;
end)&lt;/div&gt;</summary>
		<author><name>FaLsE Country</name></author>
	</entry>
</feed>