Author Topic: How would you display stuff on a computer monitor's screen in gmod?  (Read 727 times)

So I have this code
Code: [Select]
function ISaid( Ply, text, public )
    if (string.sub(text, 1, 4) == "/sc ") then--if the first 3 letters are /sc continue
        local pcname = string.gsub(text, "/sc", "")
if pcname != nil then
local name = pcname
        local computer=ents.Create("prop_physics")
        computer:SetModel("models/props_lab/monitor01a.mdl")
        computer:SetName(name)
local tr = Ply:GetEyeTrace()
        computer:SetPos(tr.HitPos)
        computer:Spawn()
PrintMessage( HUD_PRINTTALK, "Spawned computer named \"" .. name .. "\"." )
end
    end
end
hook.Add( "PlayerSay", "ISaid", ISaid );

and I want to be able to draw stuff on the monitor's screen like in gTerminal.