Skip to content

Commit

Permalink
Merge pull request #344 from LeSiiN/patch-1
Browse files Browse the repository at this point in the history
added print
  • Loading branch information
xFutte authored May 20, 2023
2 parents bc3daf7 + 442cb17 commit 034c63a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 034c63a

Please sign in to comment.