D3stats/lua/d3stats/cl_network.lua

14 lines
368 B
Lua
Raw Permalink Normal View History

2020-01-22 14:25:58 +00:00
-- Copyright (c) 2020 David Vogel
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
net.Receive("D3stats_UpdateXP", function()
local XP = net.ReadUInt(32)
2016-10-05 12:30:35 +00:00
--print("XP update: " .. tostring(XP))
2016-10-05 12:30:35 +00:00
if D3stats and D3stats.D3statsOverlay then
D3stats.D3statsOverlay:StatsUpdate(XP, D3stats.CalculateLevel(XP))
2016-10-05 12:30:35 +00:00
end
end)