lua -- Red Dead Redemption 2 Infinity Health -- Created by: YourNameHere -- Last updated: 2022-03-01 -- Function to get the player's character function getPlayerCharacter() local playerPed = PlayerPedId() if playerPed then return GetPlayerPedCharacter(playerPed) end return nil end -- Function to set the player's character's health function setCharacterHealth(character, health) if character then SetCharacterHealth(character, health) end end -- Main loop while true do -- Get the player's character local playerCharacter = getPlayerCharacter() -- Set the player's character's health to infinity setCharacterHealth(playerCharacter, 99999) -- Wait for a while before checking again Wait(1000) end