Search the Community
Showing results for tags 'hp'.
-
At the time of death of a player on the server, he is invited to make a call. I have 3 hospitals in my server: Paleto, Sandy and Los Santos. I would like to know how to calculate the distance from the hospital to the place of death, in order to determine where to go faster. And the doctors would have the text "911 call * Region *. From (PlayerID)"
-
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); });
