diff --git a/server/functions.lua b/server/functions.lua index 3c4ad40d..373ffb78 100644 --- a/server/functions.lua +++ b/server/functions.lua @@ -84,7 +84,7 @@ function LoadInventory(source, citizenid) end if #missingItems > 0 then - print(('The following items were removed for player %s as they no longer exist: %s'):format(GetPlayerName(source), table.concat(missingItems, ', '))) + print(('The following items were removed for player %s as they no longer exist: %s'):format(source and GetPlayerName(source) or citizenid, table.concat(missingItems, ', '))) end return loadedInventory