From 6e3011ad525021707e443253def1b098bb67a489 Mon Sep 17 00:00:00 2001 From: Winkarst-cpu Date: Tue, 21 May 2024 17:02:13 +0300 Subject: [PATCH] Don't save bots data Don't save bots data as this can cause a Lua error and is a bit useless --- gamemode/core/libs/sv_player.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gamemode/core/libs/sv_player.lua b/gamemode/core/libs/sv_player.lua index 5bd35c0d7..0188ced15 100644 --- a/gamemode/core/libs/sv_player.lua +++ b/gamemode/core/libs/sv_player.lua @@ -48,6 +48,8 @@ do end function playerMeta:SaveData() + if (self:IsBot()) then return end + local name = self:SteamName() local steamID64 = self:SteamID64()