<?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=GustavoFreire</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=GustavoFreire"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/GustavoFreire"/>
	<updated>2026-06-05T12:35:17Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PT-BR/SetElementBonePosition&amp;diff=75709</id>
		<title>PT-BR/SetElementBonePosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PT-BR/SetElementBonePosition&amp;diff=75709"/>
		<updated>2022-12-05T03:08:04Z</updated>

		<summary type="html">&lt;p&gt;GustavoFreire: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{BR/Funcao cliente}}&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|20704|Esta função define as coordenadas de um osso previamente especificado. Atualmente os elementos do tipo: [[Element/Player|Player]] e [[Element/Ped|Ped]] são aceitos.}}&lt;br /&gt;
{{Tip|Se você quer anexar um elemente a um osso, confira: [[attachElementToBone]].}}&lt;br /&gt;
{{Note|Você precisa usar essa função em conjunto com o seguinte evento: [[onClientPedsProcessed]].}}&lt;br /&gt;
&lt;br /&gt;
==Sintaxe==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setElementBonePosition ( element theElement, int bone, float x, float y, float z )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Argumentos necessários===&lt;br /&gt;
*'''theElement:''' o [[Element|elemento]] que terá a posição do osso definida.&lt;br /&gt;
*'''bone:''' o ID do osso que terá a posição definida. Confira os ID's em: [[Bone IDs]].&lt;br /&gt;
*'''x:''' A coordenada X que o osso terá.&lt;br /&gt;
*'''y:''' A coordenada Y que o osso terá.&lt;br /&gt;
*'''z:''' A coordenada Z que o osso terá.&lt;br /&gt;
&lt;br /&gt;
===Retorno===&lt;br /&gt;
Retorna ''true'' se a execução for bem sucedida, ''false'' caso contrário.&lt;br /&gt;
&lt;br /&gt;
==Exemplo==&lt;br /&gt;
[[File:CJ with long neck.png|thumb|alt=CJ with long neck|Pré-visualização do exemplo.]]&lt;br /&gt;
Este exemplo mostra o CJ surpreso e com um longo pescoço&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local bones = {&lt;br /&gt;
    [4] = Vector3(0, 0, 0.15),&lt;br /&gt;
    [5] = Vector3(0, 0, 0.15),&lt;br /&gt;
    [6] = Vector3(0, 0, 0.13),&lt;br /&gt;
    [7] = Vector3(0, 0, 0.13),&lt;br /&gt;
    [8] = Vector3(0, 0, 0.1),&lt;br /&gt;
}&lt;br /&gt;
function updatePed()&lt;br /&gt;
    for bone,v in pairs(bones) do&lt;br /&gt;
        local pos = localPlayer:getBonePosition(bone)+v&lt;br /&gt;
        setElementBonePosition(localPlayer, bone, pos)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientPedsProcessed&amp;quot;, root, updatePed)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requerimentos==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20704|}}&lt;br /&gt;
&lt;br /&gt;
==Veja também==&lt;br /&gt;
{{Client_element_functions}}&lt;/div&gt;</summary>
		<author><name>GustavoFreire</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PT-BR/SetElementBonePosition&amp;diff=75708</id>
		<title>PT-BR/SetElementBonePosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PT-BR/SetElementBonePosition&amp;diff=75708"/>
		<updated>2022-12-05T03:07:35Z</updated>

		<summary type="html">&lt;p&gt;GustavoFreire: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{BR/Funcao cliente}}&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|20704|Esta função define as coordenadas de um osso previamente especificado. Atualmente os elementos do tipo: [[Element/Player|Player]] e [[Element/Ped|Ped]] são aceitos.}}&lt;br /&gt;
{{Tip|Se você quer anexar um elemente a um osso, confira: [[attachElementToBone]].}}&lt;br /&gt;
{{Note|Você precisa usar essa função em conjunto com o seguinte evento: [[onClientPedsProcessed]].}}&lt;br /&gt;
&lt;br /&gt;
==Sintáxe==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setElementBonePosition ( element theElement, int bone, float x, float y, float z )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Argumentos necessários===&lt;br /&gt;
*'''theElement:''' o [[Element|elemento]] que terá a posição do osso definida.&lt;br /&gt;
*'''bone:''' o ID do osso que terá a posição definida. Confira os ID's em: [[Bone IDs]].&lt;br /&gt;
*'''x:''' A coordenada X que o osso terá.&lt;br /&gt;
*'''y:''' A coordenada Y que o osso terá.&lt;br /&gt;
*'''z:''' A coordenada Z que o osso terá.&lt;br /&gt;
&lt;br /&gt;
===Retorno===&lt;br /&gt;
Retorna ''true'' se a execução for bem sucedida, ''false'' caso contrário.&lt;br /&gt;
&lt;br /&gt;
==Exemplo==&lt;br /&gt;
[[File:CJ with long neck.png|thumb|alt=CJ with long neck|Pré-visualização do exemplo.]]&lt;br /&gt;
Este exemplo mostra o CJ surpreso e com um longo pescoço&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local bones = {&lt;br /&gt;
    [4] = Vector3(0, 0, 0.15),&lt;br /&gt;
    [5] = Vector3(0, 0, 0.15),&lt;br /&gt;
    [6] = Vector3(0, 0, 0.13),&lt;br /&gt;
    [7] = Vector3(0, 0, 0.13),&lt;br /&gt;
    [8] = Vector3(0, 0, 0.1),&lt;br /&gt;
}&lt;br /&gt;
function updatePed()&lt;br /&gt;
    for bone,v in pairs(bones) do&lt;br /&gt;
        local pos = localPlayer:getBonePosition(bone)+v&lt;br /&gt;
        setElementBonePosition(localPlayer, bone, pos)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientPedsProcessed&amp;quot;, root, updatePed)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requerimentos==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20704|}}&lt;br /&gt;
&lt;br /&gt;
==Veja também==&lt;br /&gt;
{{Client_element_functions}}&lt;/div&gt;</summary>
		<author><name>GustavoFreire</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetElementBonePosition&amp;diff=75707</id>
		<title>SetElementBonePosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetElementBonePosition&amp;diff=75707"/>
		<updated>2022-12-05T03:07:18Z</updated>

		<summary type="html">&lt;p&gt;GustavoFreire: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{BR/Funcao cliente}}&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|20704|This function sets the position of a bone to the specified coordinates. Currently the [[Element/Player|Player]] and [[Element/Ped|Ped]] element types are accepted.}}&lt;br /&gt;
{{Tip|If you want to attach an element to a bone, see [[attachElementToBone]].}}&lt;br /&gt;
{{Note|You need to use this function together with [[onClientPedsProcessed]].}}&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 setElementBonePosition ( element theElement, int bone, float x, float y, float z )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theElement:''' the [[Element|element]] to set the bone position on.&lt;br /&gt;
*'''bone:''' the ID of the bone to set the position of. See [[Bone IDs]].&lt;br /&gt;
*'''x:''' The X coordinate of the destination.&lt;br /&gt;
*'''y:''' The Y coordinate of the destination.&lt;br /&gt;
*'''z:''' The Z coordinate of the destination.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the function was successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
[[File:CJ with long neck.png|thumb|alt=CJ with long neck|Example preview]]&lt;br /&gt;
This example shows a surprised CJ with a long neck&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local bones = {&lt;br /&gt;
    [4] = Vector3(0, 0, 0.15),&lt;br /&gt;
    [5] = Vector3(0, 0, 0.15),&lt;br /&gt;
    [6] = Vector3(0, 0, 0.13),&lt;br /&gt;
    [7] = Vector3(0, 0, 0.13),&lt;br /&gt;
    [8] = Vector3(0, 0, 0.1),&lt;br /&gt;
}&lt;br /&gt;
function updatePed()&lt;br /&gt;
    for bone,v in pairs(bones) do&lt;br /&gt;
        local pos = localPlayer:getBonePosition(bone)+v&lt;br /&gt;
        setElementBonePosition(localPlayer, bone, pos)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientPedsProcessed&amp;quot;, root, updatePed)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20704|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_element_functions}}&lt;br /&gt;
&lt;br /&gt;
[[pt-br:SetElementBonePosition]]&lt;/div&gt;</summary>
		<author><name>GustavoFreire</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetElementBonePosition&amp;diff=75706</id>
		<title>SetElementBonePosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetElementBonePosition&amp;diff=75706"/>
		<updated>2022-12-05T03:06:32Z</updated>

		<summary type="html">&lt;p&gt;GustavoFreire: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{BR/Funcao cliente}}&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|20704|This function sets the position of a bone to the specified coordinates. Currently the [[Element/Player|Player]] and [[Element/Ped|Ped]] element types are accepted.}}&lt;br /&gt;
{{Tip|If you want to attach an element to a bone, see [[attachElementToBone]].}}&lt;br /&gt;
{{Note|You need to use this function together with [[onClientPedsProcessed]].}}&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 setElementBonePosition ( element theElement, int bone, float x, float y, float z )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theElement:''' the [[Element|element]] to set the bone position on.&lt;br /&gt;
*'''bone:''' the ID of the bone to set the position of. See [[Bone IDs]].&lt;br /&gt;
*'''x:''' The X coordinate of the destination.&lt;br /&gt;
*'''y:''' The Y coordinate of the destination.&lt;br /&gt;
*'''z:''' The Z coordinate of the destination.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the function was successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
[[File:CJ with long neck.png|thumb|alt=CJ with long neck|Example preview]]&lt;br /&gt;
This example shows a surprised CJ with a long neck&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local bones = {&lt;br /&gt;
    [4] = Vector3(0, 0, 0.15),&lt;br /&gt;
    [5] = Vector3(0, 0, 0.15),&lt;br /&gt;
    [6] = Vector3(0, 0, 0.13),&lt;br /&gt;
    [7] = Vector3(0, 0, 0.13),&lt;br /&gt;
    [8] = Vector3(0, 0, 0.1),&lt;br /&gt;
}&lt;br /&gt;
function updatePed()&lt;br /&gt;
    for bone,v in pairs(bones) do&lt;br /&gt;
        local pos = localPlayer:getBonePosition(bone)+v&lt;br /&gt;
        setElementBonePosition(localPlayer, bone, pos)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientPedsProcessed&amp;quot;, root, updatePed)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20704|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_element_functions}}&lt;br /&gt;
&lt;br /&gt;
[[pt-br:setElementBonePosition]]&lt;/div&gt;</summary>
		<author><name>GustavoFreire</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PT-BR/getElementType&amp;diff=75705</id>
		<title>PT-BR/getElementType</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PT-BR/getElementType&amp;diff=75705"/>
		<updated>2022-12-05T03:04:27Z</updated>

		<summary type="html">&lt;p&gt;GustavoFreire: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BR/Funcao compartilhada}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Esta função é utilizada para obter o tipo de um elemento.&lt;br /&gt;
&lt;br /&gt;
==Sintaxe== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getElementType ( element theElement )  &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{BR/OOP||[[element]]:getType|type|}}&lt;br /&gt;
&lt;br /&gt;
===Argumentos Necessários=== &lt;br /&gt;
*'''theElement:''' O [[elemento]] que você quer obter o tipo.&lt;br /&gt;
&lt;br /&gt;
===Retorna===&lt;br /&gt;
Retorna uma ''string'' indicando o tipo do elemento, ''false'' se argumentos inválidos foram especificados.&lt;br /&gt;
&lt;br /&gt;
==Exemplo== &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;
Esta função destrói o palheiro quando o jogador o vê.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerTarget ( targetElem )&lt;br /&gt;
    -- if the targeted object is a haystack (an object with model ID 3374) remove it from the game&lt;br /&gt;
    if getElementType ( targetElem ) == &amp;quot;object&amp;quot; and getElementModel ( targetElem ) == 3374 then&lt;br /&gt;
        destroyElement ( targetElem )&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerTarget&amp;quot;, root, onPlayerTarget )    -- add above function as handler for targeting event&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Veja também==&lt;br /&gt;
{{Element functions}}&lt;/div&gt;</summary>
		<author><name>GustavoFreire</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetElementBonePosition&amp;diff=75704</id>
		<title>SetElementBonePosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetElementBonePosition&amp;diff=75704"/>
		<updated>2022-12-05T03:03:32Z</updated>

		<summary type="html">&lt;p&gt;GustavoFreire: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{BR/Funcao cliente}}&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|20704|This function sets the position of a bone to the specified coordinates. Currently the [[Element/Player|Player]] and [[Element/Ped|Ped]] element types are accepted.}}&lt;br /&gt;
{{Tip|If you want to attach an element to a bone, see [[attachElementToBone]].}}&lt;br /&gt;
{{Note|You need to use this function together with [[onClientPedsProcessed]].}}&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 setElementBonePosition ( element theElement, int bone, float x, float y, float z )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theElement:''' the [[Element|element]] to set the bone position on.&lt;br /&gt;
*'''bone:''' the ID of the bone to set the position of. See [[Bone IDs]].&lt;br /&gt;
*'''x:''' The X coordinate of the destination.&lt;br /&gt;
*'''y:''' The Y coordinate of the destination.&lt;br /&gt;
*'''z:''' The Z coordinate of the destination.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the function was successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
[[File:CJ with long neck.png|thumb|alt=CJ with long neck|Example preview]]&lt;br /&gt;
This example shows a surprised CJ with a long neck&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local bones = {&lt;br /&gt;
    [4] = Vector3(0, 0, 0.15),&lt;br /&gt;
    [5] = Vector3(0, 0, 0.15),&lt;br /&gt;
    [6] = Vector3(0, 0, 0.13),&lt;br /&gt;
    [7] = Vector3(0, 0, 0.13),&lt;br /&gt;
    [8] = Vector3(0, 0, 0.1),&lt;br /&gt;
}&lt;br /&gt;
function updatePed()&lt;br /&gt;
    for bone,v in pairs(bones) do&lt;br /&gt;
        local pos = localPlayer:getBonePosition(bone)+v&lt;br /&gt;
        setElementBonePosition(localPlayer, bone, pos)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientPedsProcessed&amp;quot;, root, updatePed)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20704|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_element_functions}}&lt;br /&gt;
&lt;br /&gt;
[[pt-br:getElementType]]&lt;/div&gt;</summary>
		<author><name>GustavoFreire</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PT-BR/SetElementBonePosition&amp;diff=75703</id>
		<title>PT-BR/SetElementBonePosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PT-BR/SetElementBonePosition&amp;diff=75703"/>
		<updated>2022-12-05T03:02:07Z</updated>

		<summary type="html">&lt;p&gt;GustavoFreire: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{BR/Funcao cliente}}&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|20704|Esta função define as coordenadas de um osso previamente especificado. Atualment os elementos do tipo: [[Element/Player|Player]] e [[Element/Ped|Ped]] são aceitos.}}&lt;br /&gt;
{{Tip|Se você quer anexar um elemente a um osso, confira: [[attachElementToBone]].}}&lt;br /&gt;
{{Note|Você precisa usar essa função em conjunto com o seguinte evento: [[onClientPedsProcessed]].}}&lt;br /&gt;
&lt;br /&gt;
==Sintáxe==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setElementBonePosition ( element theElement, int bone, float x, float y, float z )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Argumentos necessários===&lt;br /&gt;
*'''theElement:''' o [[Element|elemento]] que terá a posição do osso definida.&lt;br /&gt;
*'''bone:''' o ID do osso que terá a posição definida. Confira os ID's em: [[Bone IDs]].&lt;br /&gt;
*'''x:''' A coordenada X que o osso terá.&lt;br /&gt;
*'''y:''' A coordenada Y que o osso terá.&lt;br /&gt;
*'''z:''' A coordenada Z que o osso terá.&lt;br /&gt;
&lt;br /&gt;
===Retorno===&lt;br /&gt;
Retorna ''true'' se a execução for bem sucedida, ''false'' caso contrário.&lt;br /&gt;
&lt;br /&gt;
==Exemplo==&lt;br /&gt;
[[File:CJ with long neck.png|thumb|alt=CJ with long neck|Pré-visualização do exemplo.]]&lt;br /&gt;
Este exemplo mostra o CJ surpreso e com um longo pescoço&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local bones = {&lt;br /&gt;
    [4] = Vector3(0, 0, 0.15),&lt;br /&gt;
    [5] = Vector3(0, 0, 0.15),&lt;br /&gt;
    [6] = Vector3(0, 0, 0.13),&lt;br /&gt;
    [7] = Vector3(0, 0, 0.13),&lt;br /&gt;
    [8] = Vector3(0, 0, 0.1),&lt;br /&gt;
}&lt;br /&gt;
function updatePed()&lt;br /&gt;
    for bone,v in pairs(bones) do&lt;br /&gt;
        local pos = localPlayer:getBonePosition(bone)+v&lt;br /&gt;
        setElementBonePosition(localPlayer, bone, pos)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientPedsProcessed&amp;quot;, root, updatePed)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requerimentos==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20704|}}&lt;br /&gt;
&lt;br /&gt;
==Veja também==&lt;br /&gt;
{{Client_element_functions}}&lt;/div&gt;</summary>
		<author><name>GustavoFreire</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetElementBonePosition&amp;diff=75702</id>
		<title>SetElementBonePosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetElementBonePosition&amp;diff=75702"/>
		<updated>2022-12-05T03:00:43Z</updated>

		<summary type="html">&lt;p&gt;GustavoFreire: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{BR/Funcao cliente}}&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|20704|This function sets the position of a bone to the specified coordinates. Currently the [[Element/Player|Player]] and [[Element/Ped|Ped]] element types are accepted.}}&lt;br /&gt;
{{Tip|If you want to attach an element to a bone, see [[attachElementToBone]].}}&lt;br /&gt;
{{Note|You need to use this function together with [[onClientPedsProcessed]].}}&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 setElementBonePosition ( element theElement, int bone, float x, float y, float z )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theElement:''' the [[Element|element]] to set the bone position on.&lt;br /&gt;
*'''bone:''' the ID of the bone to set the position of. See [[Bone IDs]].&lt;br /&gt;
*'''x:''' The X coordinate of the destination.&lt;br /&gt;
*'''y:''' The Y coordinate of the destination.&lt;br /&gt;
*'''z:''' The Z coordinate of the destination.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the function was successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
[[File:CJ with long neck.png|thumb|alt=CJ with long neck|Example preview]]&lt;br /&gt;
This example shows a surprised CJ with a long neck&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local bones = {&lt;br /&gt;
    [4] = Vector3(0, 0, 0.15),&lt;br /&gt;
    [5] = Vector3(0, 0, 0.15),&lt;br /&gt;
    [6] = Vector3(0, 0, 0.13),&lt;br /&gt;
    [7] = Vector3(0, 0, 0.13),&lt;br /&gt;
    [8] = Vector3(0, 0, 0.1),&lt;br /&gt;
}&lt;br /&gt;
function updatePed()&lt;br /&gt;
    for bone,v in pairs(bones) do&lt;br /&gt;
        local pos = localPlayer:getBonePosition(bone)+v&lt;br /&gt;
        setElementBonePosition(localPlayer, bone, pos)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientPedsProcessed&amp;quot;, root, updatePed)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20704|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_element_functions}}&lt;/div&gt;</summary>
		<author><name>GustavoFreire</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PT-BR/SetElementBonePosition&amp;diff=75701</id>
		<title>PT-BR/SetElementBonePosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PT-BR/SetElementBonePosition&amp;diff=75701"/>
		<updated>2022-12-05T02:59:11Z</updated>

		<summary type="html">&lt;p&gt;GustavoFreire: Created page with &amp;quot;__NOTOC__ {{Função de lado cliente}} {{Added feature/item|1.5.9|1.5.8|20704|Esta função define as coordenadas de um osso previamente especificado. Atualment os elementos do tipo: Player e Ped são aceitos.}} {{Tip|Se você quer anexar um elemente a um osso, confira: attachElementToBone.}} {{Note|Você precisa usar essa função em conjunto com o seguinte evento: onClientPedsProcessed.}}  ==Sintáxe== &amp;lt;syntaxhighlight lang=&amp;quot;l...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Função de lado cliente}}&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|20704|Esta função define as coordenadas de um osso previamente especificado. Atualment os elementos do tipo: [[Element/Player|Player]] e [[Element/Ped|Ped]] são aceitos.}}&lt;br /&gt;
{{Tip|Se você quer anexar um elemente a um osso, confira: [[attachElementToBone]].}}&lt;br /&gt;
{{Note|Você precisa usar essa função em conjunto com o seguinte evento: [[onClientPedsProcessed]].}}&lt;br /&gt;
&lt;br /&gt;
==Sintáxe==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setElementBonePosition ( element theElement, int bone, float x, float y, float z )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Argumentos necessários===&lt;br /&gt;
*'''theElement:''' o [[Element|elemento]] que terá a posição do osso definida.&lt;br /&gt;
*'''bone:''' o ID do osso que terá a posição definida. Confira os ID's em: [[Bone IDs]].&lt;br /&gt;
*'''x:''' A coordenada X que o osso terá.&lt;br /&gt;
*'''y:''' A coordenada Y que o osso terá.&lt;br /&gt;
*'''z:''' A coordenada Z que o osso terá.&lt;br /&gt;
&lt;br /&gt;
===Retorno===&lt;br /&gt;
Retorna ''true'' se a execução for bem sucedida, ''false'' caso contrário.&lt;br /&gt;
&lt;br /&gt;
==Exemplo==&lt;br /&gt;
[[File:CJ with long neck.png|thumb|alt=CJ with long neck|Pré-visualização do exemplo.]]&lt;br /&gt;
Este exemplo mostra o CJ surpreso e com um longo pescoço&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local bones = {&lt;br /&gt;
    [4] = Vector3(0, 0, 0.15),&lt;br /&gt;
    [5] = Vector3(0, 0, 0.15),&lt;br /&gt;
    [6] = Vector3(0, 0, 0.13),&lt;br /&gt;
    [7] = Vector3(0, 0, 0.13),&lt;br /&gt;
    [8] = Vector3(0, 0, 0.1),&lt;br /&gt;
}&lt;br /&gt;
function updatePed()&lt;br /&gt;
    for bone,v in pairs(bones) do&lt;br /&gt;
        local pos = localPlayer:getBonePosition(bone)+v&lt;br /&gt;
        setElementBonePosition(localPlayer, bone, pos)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientPedsProcessed&amp;quot;, root, updatePed)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requerimentos==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20704|}}&lt;br /&gt;
&lt;br /&gt;
==Veja também==&lt;br /&gt;
{{Client_element_functions}}&lt;/div&gt;</summary>
		<author><name>GustavoFreire</name></author>
	</entry>
</feed>