diff --git a/server/main.lua b/server/main.lua index 423123b..4d9dab3 100644 --- a/server/main.lua +++ b/server/main.lua @@ -215,7 +215,7 @@ end exports('addAccountMoney', AddAccountMoney) local function getPlayerData(source, id) - local Player = GetPlayerObject(tonumber(id)) + local Player = source and GetPlayerObject(source) if not Player then Player = GetPlayerObjectFromID(id) end if not Player then local msg = ("Cannot Find Account(%s)"):format(id)