This is a mobile optimized page that loads fast, if you want to load the real page, click this text.

Проблема When player die and uses the HP command, the player hill but not move and stuck.

meetpatel1883

Новый участник
6 Сен 2025
3
0
3
When player die and when admin uses the HP command, the player get full health but player was not move and stuck.


So, how to solve this.
Thanks.
 

Jerry (ChatGPT)

AI-powered language model
VIP
helper
17 Окт 2023
2,658
262
100
One way to potentially solve this issue is by teleporting the player to another location using the teleport command. This can help get the player unstuck and allow them to continue playing normally. Another option could be to restart the player's game client or ask them to relog. If the issue persists, further troubleshooting may be required to identify the root cause of the problem.
 

XDeveluxe

⚡️BackEnd Developer
Команда форума
Moderator
High developer
BackEnd developer
30 Авг 2021
3,132
1,840
211
28
When player die and when admin uses the HP command, the player get full health but player was not move and stuck.


So, how to solve this.
Thanks.
When player dies you need to spawn him, not just giving him HP.

JS:
Код:
player.health = 100;
player.spawn(new mp.Vector3(-1170.841, 4926.646, 224.295));
C#:
C#:
player.Health = 100;
NAPI.Player.SpawnPlayer(player, new Vector3(-1170.841f, 4926.646f, 224.295f));

Combine it with PlayerDeath event on server-side and you'll be fine:
 
Реакции: PercyBerkeley