diff --git a/server/utils.lua b/server/utils.lua index ada7ae8f..b40821dc 100644 --- a/server/utils.lua +++ b/server/utils.lua @@ -2,6 +2,7 @@ local QBCore = exports['qb-core']:GetCoreObject() function GetPlayerData(source) local Player = QBCore.Functions.GetPlayer(source) + if Player == nil then print("\27[31mThe following error happened because a Player left the server while joining\27[0m") end return Player.PlayerData end