ruskov Posted May 5, 2019 Posted May 5, 2019 Try putting it in \server-files\client_packages\roleplay > events.js and it did not work. I'm in the right place where you have to put it?
chocopops Posted July 17, 2019 Posted July 17, 2019 On 12/12/2018 at 8:33 PM, Jaimuzu said: 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); }); Hey man can you tell me how to install this on C#? Also, do I install this clientside or serverside?
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