```start runcode -- start: Resource 'runcode' started run p = getRandomPlayer() -- Command executed! run setPedStat(p, 24, 0); setElementHealth(p, 200) run getElementHealth(p) -- Command results: 1 [number] run setPedStat(p, 24, 100); setElementHealth(p, 200) run getElementHealth(p) -- Command results: 1 [number] run setPedStat(p, 24, 500); setElementHealth(p, 200) run getElementHealth(p) -- Command results: 83 [number] run setPedStat(p, 24, 569); setElementHealth(p, 200) run getElementHealth(p) -- Command results: 100 [number] run setPedStat(p, 24, 900); setElementHealth(p, 200) run getElementHealth(p) -- Command results: 176 [number] run setPedStat(p, 24, 1000); setElementHealth(p, 200) run getElementHealth(p) -- Command results: 200 [number] ``` OK! Now try calculate with your formula: ```100 * 0 / 569 = 0 hp (hmm.. not true) 100 * 100 / 569 = 17 hp (not true) 100 * 500 / 569 = 87 hp (not true) 100 * 569 / 569 = 100 hp (wow! right!) 100 * 900 / 569 = 158 hp (not true) 100 * 1000 / 569 = 175 hp (not true) ``` And now use formula from MTA sources: ```max(1, 100 + (0 - 569) / 4.31) = 1 hp (yes, is true) max(1, 100 + (100 - 569) / 4.31) = 1 hp (is true) max(1, 100 + (500 - 569) / 4.31) = 83 hp (is true) max(1, 100 + (569 - 569) / 4.31) = 100 hp (is true) max(1, 100 + (900 - 569) / 4.31) = 176 hp (is true) max(1, 100 + (1000 - 569) / 4.31) = 200 hp (is true) ```