So I need to use the UniqueID when I call up a vgui, but I am not sure what the best way to do this is, so far I have:
function( pl, playerID ) local RE = vgui.Create("RE") local list = file.Find("RE/stuff/"..playerID.."/*.txt") for _, f in pairs(list) do print(playerID.." "..f) end
local playerID = pl:UniqueID()
datastream.StreamToClients(pl, “RE”, playerID)
But the playerID turns into the number 1 as soon as I stream it, I am guessing it is not even possible this way?
Thanks in advance