| Off Topic > Games |
| How would you display stuff on a computer monitor's screen in gmod? |
| (1/1) |
| zefoo:
So I have this code --- Code: ---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 ); --- End code --- and I want to be able to draw stuff on the monitor's screen like in gTerminal. |
| Navigation |
| Message Index |