JamesBeast Posted December 12, 2018 Share Posted December 12, 2018 (edited) This occurs due to player stamina hitting zero, resulting in hp being lost. Below is the workaround for this in both C# and JavaScript. C# //Subscribe the Tick event Events.Tick += Tick; public void Tick(List<Events.TickNametagData> nametags) { RAGE.Game.Player.RestorePlayerStamina(1.0F); } JavaScript mp.events.add('render', () => { mp.game.player.restoreStamina(100); }); ย Edited December 12, 2018 by Jaimuzu added event subscription 3 1 1 Link to comment Share on other sites More sharing options...
ragempdev Posted December 12, 2018 Share Posted December 12, 2018 ohhhh ty! got my staminaย ๐ช restored ๐ ๐ 3 Link to comment Share on other sites More sharing options...
JamesBeast Posted December 12, 2018 Author Share Posted December 12, 2018 1 minute ago, ragempdev said: ohhhh ty! got my staminaย ๐ช restored ๐ ๐ epic )))))) may you run far and fast for eternity 1 Link to comment Share on other sites More sharing options...
amahone Posted December 12, 2018 Share Posted December 12, 2018 Usefull, thx I added statement if(mp.players.local.isSprinting()) { mp.game.player.restoreStamina(100); } ย 2 Link to comment Share on other sites More sharing options...
JamesBeast Posted December 12, 2018 Author Share Posted December 12, 2018 1 minute ago, amahone said: Usefull, thx I added statement if(mp.players.local.isSprinting()) { mp.game.player.restoreStamina(100); } ย epic. glad you like men))))๐๐๐๐๐ 3 Link to comment Share on other sites More sharing options...
trolovecro Posted December 13, 2018 Share Posted December 13, 2018 Didnt even know about that lol. Thanks! 1 Link to comment Share on other sites More sharing options...
JamesBeast Posted December 14, 2018 Author Share Posted December 14, 2018 8 hours ago, trolovecro said: Didnt even know about that lol. Thanks! ๐๐๐๐๐๐๐๐๐๐๐ย youre welcome on ragemp 2 Link to comment Share on other sites More sharing options...
SirJeffQuin Posted April 7, 2019 Share Posted April 7, 2019 can someone explain how to add that one? Link to comment Share on other sites More sharing options...
Outernet Roleplay Posted April 24, 2019 Share Posted April 24, 2019 On 4/7/2019 at 8:35 AM, SirJeffQuin said: can someone explain how to add that one? You'll need to place it in a clientside file. 1 Link to comment Share on other sites More sharing options...
SirJeffQuin Posted April 25, 2019 Share Posted April 25, 2019 vor 18 Stunden schrieb Outernet Roleplay: You'll need to place it in a clientside file. ya had that twice already and did not worked but found myself why and solved it, thanks for the respone o/ Link to comment Share on other sites More sharing options...
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