[HOTFIX] SetBlipAndNametagColor crashes when player is completely offline

This commit is contained in:
hydrant
2021-04-11 17:52:48 +02:00
parent 46a47d71e8
commit 7880670980

View File

@@ -328,6 +328,11 @@ namespace ReallifeGamemode.Server.Extensions
int nameTagColor = 0;
Player player = user.Player;
if(player == null || !player.IsLoggedIn())
{
return;
}
bool duty = user.GetData<bool>("duty");
if (player.GetData<bool>("SAdminduty"))