Jump to content

How to stop playing losing hp when running for too long


Recommended Posts

This occurs due to player stamina hitting zero, resulting in hp being lost. Below is the workaround for this in both C# and JavaScript.


//Subscribe the Tick event
Events.Tick += Tick;

public void Tick(List<Events.TickNametagData> nametags)


mp.events.add('render', () => {


Edited by Jaimuzu
added event subscription
  • Like 3
  • Mask 1
  • Sad 1
Link to comment
Share on other sites

  • 3 months later...
  • 3 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...