<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/RU/getScreenFromWorldPosition?action=history&amp;feed=atom</id>
	<title>RU/getScreenFromWorldPosition - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/RU/getScreenFromWorldPosition?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/getScreenFromWorldPosition&amp;action=history"/>
	<updated>2026-05-15T22:16:10Z</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=RU/getScreenFromWorldPosition&amp;diff=23747&amp;oldid=prev</id>
		<title>PoliticalOrel: Created page with '__NOTOC__ {{RU/Client function}} This function gets the screen position of a point in the world. This is useful for attaching 2D gui elements to parts of the world (e.g. players)…'</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/getScreenFromWorldPosition&amp;diff=23747&amp;oldid=prev"/>
		<updated>2010-06-23T19:19:42Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;__NOTOC__ {{RU/Client function}} This function gets the screen position of a point in the world. This is useful for attaching 2D gui elements to parts of the world (e.g. players)…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
{{RU/Client function}}&lt;br /&gt;
This function gets the screen position of a point in the world. This is useful for attaching 2D gui elements to parts of the world (e.g. players) or detecting if a point is on the screen (though it does not check if it is actually visible, you should use [[processLineOfSight]] for that).&lt;br /&gt;
&lt;br /&gt;
==Использование==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float float getScreenFromWorldPosition ( float x, float y, float z, [ float edgeTolerance=0, bool relative=true ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Необходимые параметры===&lt;br /&gt;
*'''x:''' A float value indicating the x position in the world.&lt;br /&gt;
*'''y:''' A float value indicating the y position in the world.&lt;br /&gt;
*'''z:''' A float value indicating the z position in the world.&lt;br /&gt;
&lt;br /&gt;
===Необязательные параметры=== &lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
{{New feature|3|1.0|&lt;br /&gt;
*'''edgeTolerance:''' A [[float]] value indicating the distance the position can be off screen before the function returns false.&lt;br /&gt;
*'''relative:''' A [[boolean]] value that indicates if edgeTolerance is in pixels [false], or relative to the screen size [true].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Что возвращается===&lt;br /&gt;
Returns two ''x'', ''y'' [[float]]s indicating the screen position if successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Смотри также==&lt;br /&gt;
{{RU/Client_world_functions}}&lt;/div&gt;</summary>
		<author><name>PoliticalOrel</name></author>
	</entry>
</feed>