redditing Posted April 16, 2020 Posted April 16, 2020 setPedStat(getLocalPlayer(), 24, 650) setPedMaxHealth(getLocalPlayer()) These commands do not want to work, do not show any errors. But unfortunately it doesn't set my health at around 125 points, it just sets me to 100 HP Maybe bug? pls help
Moderators IIYAMA Posted April 16, 2020 Moderators Posted April 16, 2020 1 hour ago, redditing said: Maybe bug? pls help Not a bug: Quote When this function is used client side, it can only be used on client side created peds. https://wiki.multitheftauto.com/wiki/SetPedStat Serverside: addCommandHandler("setMaxHealth", function (player) setPedStat(player, 24, 650) end) Also according to this formula: (not sure if this is valid) stat = 650 print(100 + (stat - 569) / 4.31) -- 118.79350348028 max health Source: https://wiki.multitheftauto.com/wiki/GetPedMaxHealth 1
redditing Posted April 16, 2020 Author Posted April 16, 2020 Ok i didnt see comunication about peds in client side, thank u 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now