GetEntityHealth / SetEntityHealth

Yo! so to the point, is there any way of adding a certain amount of health instead of replacing the amount the player has ?

local health = GetEntityHealth(GetPlayerPed(-1))

SetEntityHealth(health + amountYouWantToAddHere)

???

:roll_eyes: :roll_eyes: :roll_eyes: :roll_eyes: :roll_eyes: :roll_eyes: :roll_eyes: :roll_eyes:

That should work. :crossed_fingers:

quick question i’ll work if its in client right ?

Yes it will. Natives only work client side I think

Yup. Only the client is a part of the game. The server literally has no clue about GTA V. It just relays traffic between the clients.

3 Likes