Increase Health

Guys,

Keep seeing threads about raising health but the comments all say

Citizen.CreateThread(function()

SetEntityMaxHealth(PlayerId(),400)

end)

i’ve tried that above, i asked the config to read this but it doesn’t change anything, trying to make the base health of my server higher to make gun fights more interesting. Any help would be appreciated…

SetEntityMaxHealth wants an entity, PlayerId() returns a player not an entity use PlayerPedId()

1 Like

image

Tried this now still not working

I find it amazing that there is not a resource like this has been made. I have been smashing my head against the screen for weeks now trying to either increase hitpoints or lower weapon dmg and cant find a way to do it. or a resource that has already been made. I am starting to think there is not a real way to do it.

Citizen.CreateThread(function()
SetRelationshipBetweenGroups(5, GetHashKey(“PLAYER”), GetHashKey(“PLAYER”))
SetPlayerWeaponDamageModifier(PLAYER, 0.1)

i literally gave up mate and just amended the weapon damage in the end

1 Like

do you have a copy of your script for that by any chance, i been writting and rewritting a script for that over and over and i cant figure it out. its driving me crazy! I love you in advance!!!

i got it working thanks

What script calls health anyone know?

SetEntityHealth(playerPedId(), 150)

Yo guys! What file is it please

4 Likes

Calling SetPedMaxHealth(PlayerPedId(), 400) in a loop works perfectly fine for me

2 Likes

were are you putting it ?

in any client file

Hey,

I assume you try to do this client sided.

try this:

Citizen.CreateThread(function()
    while true do
        local ped = GetPlayerPed(-1)

        SetPedMaxHealth(ped, 400)
        Citizen.Wait(0)
    end
end)