Why do women have less life? How can we make them have the same life as men?
That’s the standard life for female peds in GTA…for some reason.
Use this in any client script to fix it:
AddEventHandler("playerSpawned", function() local ped = PlayerPedId() if GetPedMaxHealth(ped) ~= 200 and not IsEntityDead(ped) then SetPedMaxHealth(ped, 200) SetEntityHealth(ped, GetEntityHealth(ped) + 25) end end)
I think that code is the same one that I saw in another post in which they reported that when they left and entered the server, their lives were filled again, I mean, let’s imagine that it works and you have 100% of life, then, if you give yourself a hit and you stay at 20% when you leave and enter the server again, you put life back to 100%
Just remove the following line from the snippet, then:
In theory this should set the maximum HP to 200 while leaving the actual HP to be adjusted by a separate script. Alternatively, you can change the sequence of events so the HP is grabbed and applied onto the ped after the code above has already ran.
Could you explain it in human language or with examples? We are not all gods D:
Now really, I don’t speak English well and there are some words that I consider very technical so I wouldn’t know how to interpret what you say without examples or written commands and others…
Like I said, just remove the line I quoted from the code and use that, instead. If you still didn’t get it, here’s exactly what I mean:
AddEventHandler("playerSpawned", function() local ped = PlayerPedId() if GetPedMaxHealth(ped) ~= 200 and not IsEntityDead(ped) then SetPedMaxHealth(ped, 200) end end)
The second part you need to understand Lua and programming overall for so don’t bother with it if you’re not experienced in the field