mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-15 21:03:46 +03:00
28 lines
668 B
Lua
28 lines
668 B
Lua
--[[
|
|
| This file was obtained through the combined efforts
|
|
| of Madbluntz & Plymouth Antiquarian Society.
|
|
|
|
|
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
|
| Maloy, DrPepper10 @ RIP, Atle!
|
|
|
|
|
| Visit for more: https://plymouth.thetwilightzone.ru/
|
|
--]]
|
|
|
|
local meta_ply = FindMetaTable("Player")
|
|
|
|
VyHub.user_id = VyHub.user_id or nil
|
|
|
|
function meta_ply:VyHubID()
|
|
if IsValid(self) then
|
|
if self == LocalPlayer() then
|
|
return VyHub.user_id
|
|
else
|
|
MsgN("ERROR: Cannot get VyHubID of other users on the client side.")
|
|
end
|
|
end
|
|
end
|
|
|
|
net.Receive("vyhub_user_id", function ()
|
|
VyHub.user_id = net.ReadString()
|
|
end)
|