Files
wnsrc/addons/vyhub-gmod/lua/vyhub/client/cl_ply.lua
lifestorm 324f19217d Upload
2024-08-05 18:40:29 +03:00

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)