<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Entity%3A%3AgetHealth</id>
	<title>Entity::getHealth - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Entity%3A%3AgetHealth"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Entity::getHealth&amp;action=history"/>
	<updated>2026-07-25T00:27:52Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Entity::getHealth&amp;diff=926&amp;oldid=prev</id>
		<title>imported&gt;Shr0x: /* See also */</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Entity::getHealth&amp;diff=926&amp;oldid=prev"/>
		<updated>2024-05-01T18:10:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;See also&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Returns an integer value of entity&amp;#039;s current health.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Example of range for ped:&amp;lt;br&amp;gt;- Player [0 to 200]&amp;lt;br&amp;gt;- Ped [100 to 200]&amp;lt;br&amp;gt;- Vehicle [0 to 1000]&amp;lt;br&amp;gt;- Object [0 to 1000]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Health is actually a float value but this native casts it to int.&amp;lt;br&amp;gt;In order to get the actual value, do:&amp;lt;br&amp;gt;float health = *(float *)(entityAddress + 0x280);&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;entity.getHealth();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
===Return value===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;int&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
var currentHealth = mp.players.local.getHealth();&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Entity_definition_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Shr0x</name></author>
	</entry>
</feed>