<?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=SqdPanda</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=SqdPanda"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/SqdPanda"/>
	<updated>2026-05-12T21:33:52Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetCursorPosition&amp;diff=74451</id>
		<title>GetCursorPosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetCursorPosition&amp;diff=74451"/>
		<updated>2022-04-09T21:22:56Z</updated>

		<summary type="html">&lt;p&gt;SqdPanda: Return RELATIVE screen coordinates, not absolute&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function gets the current position of the mouse cursor. Note that for performance reasons, the world position returned is always 300 units away. If you want the exact world point (similar to [[onClientClick]]), use [[processLineOfSight]] between the camera position and the worldX/Y/Z result of this function. (See example below)&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float, float, float, float, float getCursorPosition ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns 5 values: ''cursorX'', ''cursorY'', ''worldX'', ''worldY'', ''worldZ''. The first two values are the 2D '''relative''' screen coordinates of the cursor. The 3 values that follow are the 3D world map coordinates that the cursor points at. If the cursor isn't showing, returns ''false'' as the first value.&lt;br /&gt;
&lt;br /&gt;
===Issues===&lt;br /&gt;
{{Issues|&lt;br /&gt;
{{Issue|1166|getCursorPosition() returns false even when cursor is showing due to opened console}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example prints your cursors current world coordinates and relative screen coordinates to chatbox after typing ''cursorpos''.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function cursorInfo()&lt;br /&gt;
   if isCursorShowing() then -- if the cursor is showing&lt;br /&gt;
      local screenx, screeny, worldx, worldy, worldz = getCursorPosition()&lt;br /&gt;
&lt;br /&gt;
      outputChatBox( string.format( &amp;quot;Cursor screen position (relative): X=%.4f Y=%.4f&amp;quot;, screenx, screeny ) ) -- make the accuracy of floats 4 decimals&lt;br /&gt;
      outputChatBox( string.format( &amp;quot;Cursor world position: X=%.4f Y=%.4f Z=%.4f&amp;quot;, worldx, worldy, worldz ) ) -- make the accuracy of floats 4 decimals accurate&lt;br /&gt;
   else&lt;br /&gt;
      outputChatBox( &amp;quot;Your cursor is not showing.&amp;quot; )&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;cursorpos&amp;quot;, cursorInfo )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This (untested) example uses [[processLineOfSight]] to calculate the exact world location:&lt;br /&gt;
'''Warning, using the script down there will cause high CPU usage.'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler( &amp;quot;onClientRender&amp;quot;, root,&lt;br /&gt;
    function()&lt;br /&gt;
        if isCursorShowing() then&lt;br /&gt;
            local screenx, screeny, worldx, worldy, worldz = getCursorPosition()&lt;br /&gt;
            local px, py, pz = getCameraMatrix()&lt;br /&gt;
            local hit, x, y, z, elementHit = processLineOfSight ( px, py, pz, worldx, worldy, worldz )&lt;br /&gt;
&lt;br /&gt;
            if hit then&lt;br /&gt;
                dxDrawText( &amp;quot;Cursor at &amp;quot; .. x .. &amp;quot; &amp;quot; .. y .. &amp;quot; &amp;quot; ..  z, 200, 200 )&lt;br /&gt;
                if elementHit then&lt;br /&gt;
                    dxDrawText( &amp;quot;Hit element &amp;quot; .. getElementType(elementHit), 200, 220 )&lt;br /&gt;
                end&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_cursor_functions}}&lt;br /&gt;
&lt;br /&gt;
[[hu:getCursorPosition]]&lt;/div&gt;</summary>
		<author><name>SqdPanda</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/getElementHealth&amp;diff=57983</id>
		<title>RU/getElementHealth</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/getElementHealth&amp;diff=57983"/>
		<updated>2018-08-11T20:18:36Z</updated>

		<summary type="html">&lt;p&gt;SqdPanda: Translated to Russian&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{RU/Server client function}}&lt;br /&gt;
__NOTOC__&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;
float getElementHealth ( element theElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{RU/OOP||[[element]]:getHealth|health|setElementHealth}}&lt;br /&gt;
&lt;br /&gt;
===Обязательные аргументы===&lt;br /&gt;
*'''theElement:''' Игрок или машина, здоровье которого нужно узнать.&lt;br /&gt;
&lt;br /&gt;
===Возвращает===&lt;br /&gt;
Возвращает число обозначающее здоровье элемента, или ''false'' если элемент некорректен.&lt;br /&gt;
&lt;br /&gt;
==Пример==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Пример на стороне клиента&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
Этот пример выводит в чат здоровье игрока, который прописал команду 'showhealth', и его машины.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function showLocalHealth()&lt;br /&gt;
	-- Получение здоровья игрока и вывод в чат&lt;br /&gt;
	local playerHealth = getElementHealth ( localPlayer )&lt;br /&gt;
	outputChatBox ( &amp;quot;Ваше здоровье: &amp;quot; .. playerHealth )&lt;br /&gt;
&lt;br /&gt;
	-- Получение машины игрока, и если она существует, то вывод её целостности&lt;br /&gt;
	local playerVehicle = getPedOccupiedVehicle ( localPlayer )&lt;br /&gt;
	if playerVehicle then&lt;br /&gt;
		local vehicleHealth = getElementHealth ( playerVehicle ) / 10  -- Деление на 10, ибо у машин целостность 1000&lt;br /&gt;
		outputChatBox ( &amp;quot;Целостность вашей машины: &amp;quot; .. vehicleHealth )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;showhealth&amp;quot;, showLocalHealth )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Смотрите также==&lt;br /&gt;
{{Element functions}}&lt;br /&gt;
&lt;br /&gt;
[[EN:getElementHealth]]&lt;/div&gt;</summary>
		<author><name>SqdPanda</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetElementHealth&amp;diff=57982</id>
		<title>GetElementHealth</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetElementHealth&amp;diff=57982"/>
		<updated>2018-08-11T20:16:48Z</updated>

		<summary type="html">&lt;p&gt;SqdPanda: Added RU page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function returns the current health for the specified [[element]]. This can be a [[player]], a [[ped]], a [[vehicle]], or an [[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;
float getElementHealth ( element theElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[element]]:getHealth|health|setElementHealth}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theElement:''' The [[player]] or [[vehicle]] whose health you want to check.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a float indicating the element's health, or ''false'' if invalid arguments were passed.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Clientside example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example outputs the health of the player who enters the command 'showhealth', and their vehicle's health.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function showLocalHealth()&lt;br /&gt;
	-- get the player's health and output it&lt;br /&gt;
	local playerHealth = getElementHealth ( localPlayer )&lt;br /&gt;
	outputChatBox ( &amp;quot;Your health: &amp;quot; .. playerHealth )&lt;br /&gt;
&lt;br /&gt;
	-- get the player's vehicle: if he is in one, output its health as well&lt;br /&gt;
	local playerVehicle = getPedOccupiedVehicle ( localPlayer )&lt;br /&gt;
	if playerVehicle then&lt;br /&gt;
		local vehicleHealth = getElementHealth ( playerVehicle ) / 10  -- Divide this by 10, as default the denominator is 1000&lt;br /&gt;
		outputChatBox ( &amp;quot;Your vehicle's health: &amp;quot; .. vehicleHealth )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;showhealth&amp;quot;, showLocalHealth )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Element functions}}&lt;br /&gt;
&lt;br /&gt;
[[RU:getElementHealth]]&lt;/div&gt;</summary>
		<author><name>SqdPanda</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsPlayerInACL&amp;diff=57540</id>
		<title>IsPlayerInACL</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsPlayerInACL&amp;diff=57540"/>
		<updated>2018-08-06T20:06:23Z</updated>

		<summary type="html">&lt;p&gt;SqdPanda: Added RU page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function returns true if the player is in the ACL group, false if otherwise.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool isPlayerInACL ( player thePlayer, string ACLGroup )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''thePlayer''': The player element that you want to check&lt;br /&gt;
* '''ACLGroup''': The name of the ACL group that you want to check&lt;br /&gt;
&lt;br /&gt;
'''Important Note''': This function will only work on the server-side.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns true if the player's account is in the ACL, false if otherwise.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function isPlayerInACL(player, acl)&lt;br /&gt;
   local accountName = getAccountName( getPlayerAccount(player) )&lt;br /&gt;
   if accountName ~= &amp;quot;guest&amp;quot; and type( aclGetGroup(acl) ) == &amp;quot;userdata&amp;quot; then&lt;br /&gt;
      return isObjectInACLGroup( &amp;quot;user.&amp;quot;..accountName, aclGetGroup(acl) )&lt;br /&gt;
   end&lt;br /&gt;
   return false&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This is an example of the function.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function checkAccess(thePlayer)&lt;br /&gt;
   if isPlayerInACL(thePlayer, &amp;quot;Console&amp;quot;) then&lt;br /&gt;
      outputChatBox(&amp;quot;Access Granted!&amp;quot;)&lt;br /&gt;
  else&lt;br /&gt;
      outputChatBox(&amp;quot;Access Denied!&amp;quot;)&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;myaccess&amp;quot;, checkAccess)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
xXMADEXx &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;br /&gt;
&lt;br /&gt;
[[RU:IsPlayerInACL]]&lt;/div&gt;</summary>
		<author><name>SqdPanda</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/IsPlayerInACL&amp;diff=57539</id>
		<title>RU/IsPlayerInACL</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/IsPlayerInACL&amp;diff=57539"/>
		<updated>2018-08-06T20:04:46Z</updated>

		<summary type="html">&lt;p&gt;SqdPanda: Translated to Russian&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{RU/Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Эта функция возвращает true, если игрок находится в группе ACL, а false - в противном случае.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Синтаксис==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool isPlayerInACL ( player thePlayer, string ACLGroup )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Обязательные аргументы===&lt;br /&gt;
* '''thePlayer''': Элемент игрока,которого нужно проверить&lt;br /&gt;
* '''ACLGroup''': Название группы ACL, которую вы хотите проверить.&lt;br /&gt;
&lt;br /&gt;
'''Важная заметка''': Эта функция работает только на стороне сервера.&lt;br /&gt;
&lt;br /&gt;
===Возвращает===&lt;br /&gt;
Возвращает true, если игрок находится в группе ACL, а false - в противном случае.&lt;br /&gt;
&lt;br /&gt;
==Код функции==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function isPlayerInACL(player, acl)&lt;br /&gt;
   local accountName = getAccountName( getPlayerAccount(player) )&lt;br /&gt;
   if accountName ~= &amp;quot;guest&amp;quot; and type( aclGetGroup(acl) ) == &amp;quot;userdata&amp;quot; then&lt;br /&gt;
      return isObjectInACLGroup( &amp;quot;user.&amp;quot;..accountName, aclGetGroup(acl) )&lt;br /&gt;
   end&lt;br /&gt;
   return false&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Пример==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function checkAccess(thePlayer)&lt;br /&gt;
   if isPlayerInACL(thePlayer, &amp;quot;Console&amp;quot;) then&lt;br /&gt;
      outputChatBox(&amp;quot;Access Granted!&amp;quot;)&lt;br /&gt;
  else&lt;br /&gt;
      outputChatBox(&amp;quot;Access Denied!&amp;quot;)&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;myaccess&amp;quot;, checkAccess)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
xXMADEXx &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Смотрите также==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>SqdPanda</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:RU/Useful_Function&amp;diff=57538</id>
		<title>Template:RU/Useful Function</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:RU/Useful_Function&amp;diff=57538"/>
		<updated>2018-08-06T19:59:23Z</updated>

		<summary type="html">&lt;p&gt;SqdPanda: Created page with &amp;quot;&amp;lt;pageclass class=&amp;quot;#228B22&amp;quot; subcaption=&amp;quot;Полезная функция&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt; &amp;lt;lowercasetitle&amp;gt;&amp;lt;/lowercasetitle&amp;gt; &amp;lt;includeonly&amp;gt; Category:Useful Functions &amp;lt;/includeonly&amp;gt;&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;#228B22&amp;quot; subcaption=&amp;quot;Полезная функция&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
&amp;lt;lowercasetitle&amp;gt;&amp;lt;/lowercasetitle&amp;gt;&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
[[Category:Useful Functions]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>SqdPanda</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CreateBlipAttachedTo&amp;diff=57532</id>
		<title>CreateBlipAttachedTo</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CreateBlipAttachedTo&amp;diff=57532"/>
		<updated>2018-08-06T10:41:12Z</updated>

		<summary type="html">&lt;p&gt;SqdPanda: Added RU page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function creates a [[blip]] that is attached to an [[element]]. This blip is displayed as an icon on the client's radar and will 'follow' the element that it is attached to around.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&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;
blip createBlipAttachedTo ( element elementToAttachTo [, int icon = 0, int size = 2, int r = 255, int g = 0, int b = 0, int a = 255, int ordering = 0, float visibleDistance = 16383.0, visibleTo = getRootElement( ) ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
blip createBlipAttachedTo ( element elementToAttachTo [, int icon = 0, int size = 2, int r = 255, int g = 0, int b = 0, int a = 255, int ordering = 0, float visibleDistance = 16383.0 ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{OOP||[[Blip]].createAttachedTo||}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''elementToAttachTo:''' The [[element]] to attach the marker to.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''icon:''' The icon that the radar blips should be. Valid values can be seen at [[Blip Icons]]&lt;br /&gt;
*'''size:''' The size of the radar blip. Only applicable to the ''Marker'' icon. Default value is 2. Maximum is 25.&lt;br /&gt;
*'''r:''' The amount of red in the blip's color (0 - 255). Only applicable to the ''Marker'' icon. Default is 255. &lt;br /&gt;
*'''g:''' The amount of green in the blip's color (0 - 255). Only applicable to the ''Marker'' icon. Default is 0.&lt;br /&gt;
*'''b:''' The amount of blue in the blip's color (0 - 255). Only applicable to the ''Marker'' icon. Default is 0.&lt;br /&gt;
*'''a:''' The amount of alpha in the blip's color (0 - 255). Only applicable to the ''Marker'' icon. Default is 255.&lt;br /&gt;
{{New feature/item|3|1.0||&lt;br /&gt;
*'''ordering:''' This defines the blip's Z-level ordering (-32768 - 32767). Default is 0.&lt;br /&gt;
*'''visibleDistance:''' The maximum distance from the camera at which the blip is still visible (0-65535)&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
*'''visibleTo:''' What elements can see the blip. Defaults to visible to everyone. See [[visibility]].&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[blip]] if the blip was created succesfully, or ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example creates a radar blip attached to a random player, visible to everyone. The blip will follow the player around as they move. This could be used for manhunt, to emphasise a random player.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Pick a random player&lt;br /&gt;
function setupRandomRobber ()&lt;br /&gt;
	local myPlayer = getRandomPlayer ()&lt;br /&gt;
	-- Create a radar blip at the player's position, with a 'cash' icon and only visible to everyone (no 'visibleTo' parameter)&lt;br /&gt;
	local myBlip = createBlipAttachedTo ( myPlayer, 52 )&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;
==See Also==&lt;br /&gt;
{{Blip_functions}}&lt;br /&gt;
&lt;br /&gt;
[[hu:createBlipAttachedTo]]&lt;br /&gt;
[[RU:createBlipAttachedTo]]&lt;/div&gt;</summary>
		<author><name>SqdPanda</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/createBlipAttachedTo&amp;diff=57531</id>
		<title>RU/createBlipAttachedTo</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/createBlipAttachedTo&amp;diff=57531"/>
		<updated>2018-08-06T10:40:14Z</updated>

		<summary type="html">&lt;p&gt;SqdPanda: Translated to Russian&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{RU/Server client function}}&lt;br /&gt;
Эта функция создаёт блип, который прикреплён к определённому элементу.&lt;br /&gt;
Блип отображается на радаре клиента и 'следует' за элементом, к которому прикреплён.&lt;br /&gt;
&lt;br /&gt;
==Синтаксис==&lt;br /&gt;
&amp;lt;section name='Сервер' class='server' show='true' &amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
blip createBlipAttachedTo ( element elementToAttachTo [, int icon = 0, int size = 2, int r = 255, int g = 0, int b = 0, int a = 255, int ordering = 0, float visibleDistance = 16383.0, visibleTo = getRootElement( ) ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Клиент&amp;quot; class=&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;
blip createBlipAttachedTo ( element elementToAttachTo [, int icon = 0, int size = 2, int r = 255, int g = 0, int b = 0, int a = 255, int ordering = 0, float visibleDistance = 16383.0 ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RU/OOP||[[Blip]].createAttachedTo||}}&lt;br /&gt;
&lt;br /&gt;
===Обязательные аргументы===&lt;br /&gt;
*'''elementAttachTo:''' Элемент, к которому будет прикреплён блип&lt;br /&gt;
&lt;br /&gt;
===Необязательные аргументы=== &lt;br /&gt;
{{RU/OptionalArg}} &lt;br /&gt;
*'''icon:''' Значок, который будет отображаться на радаре. Допустимые значения: [[RU/Blip Icons|Список значков]].&lt;br /&gt;
*'''size:''' Размер значка. Используется только для значка «Маркер». Значение по умолчанию - 2. Максимум 25.&lt;br /&gt;
*'''r:''' Количество красного цвета (0 - 255). Используется только для значка «Маркер». По умолчанию 255. &lt;br /&gt;
*'''g:''' Количество зеленого цвета (0 - 255). Используется только для значка «Маркер». Значение по умолчанию - 0.&lt;br /&gt;
*'''b:''' Количество синего цвета (0 - 255). Используется только для значка «Маркер». Значение по умолчанию - 0.&lt;br /&gt;
*'''a:''' Количество альфа(прозрачности) в цвете блипа (0 - 255). Используется только для значка «Маркер». По умолчанию 255.{{New feature/item|3|1.0||&lt;br /&gt;
*'''ordering:''' Это определяет порядок отображения Z-уровня (-32768 - 32767). Значение по умолчанию - 0.&lt;br /&gt;
*'''visibleDistance:''' Максимальное расстояние от камеры, на которой все еще виден блип (0-65535).&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;section name=&amp;quot;Сервер&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
*'''visibleTo:''' Это определяет, какие элементы могут видеть блип. Значение по умолчанию: для всех.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Возвращает==&lt;br /&gt;
Возвращает блип, если он был создан успешно, «false» в противном случае.&lt;br /&gt;
==Пример== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Сервер&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
Этот пример создаёт блип, прикреплённый к случайному игроку, который видят все. Блип будет следовать за всеми движениями игрока. Это можно использовать для преследования.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Выбираем случайного игрока&lt;br /&gt;
function setupRandomRobber ()&lt;br /&gt;
	local myPlayer = getRandomPlayer ()&lt;br /&gt;
	-- Создаём блип на случайном игроке с иконкой денег, который будет виден всем (аргумент 'visibleTo' не указан)&lt;br /&gt;
	local myBlip = createBlipAttachedTo ( myPlayer, 52 )&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;
==Похожие функции==&lt;br /&gt;
{{Blip_functions}}&lt;br /&gt;
&lt;br /&gt;
[[hu:createBlipAttachedTo]]&lt;br /&gt;
[[RU:createBlipAttachedTo]]&lt;/div&gt;</summary>
		<author><name>SqdPanda</name></author>
	</entry>
</feed>