Vgui problem

I’m having this problem:

perpbuild\gamemode\Music.lua:36: attempt to index global 'vgui' (a nil  value)

with this script:
local start_html = [[
<style type=“text/css”>
body, html{
padding:0px 0px 0px 0px;
margin:0px 0px 0px 0px;
text-align: center;
<body scroll=“no”; bgcolor=“black”>
–http.Get(“”, “”, Create)
local function Create_Browser(contents, size)

--local offsets = Screen_Offsets[Entity:GetModel()]

--BW = offsets.w
--BH = offsets.h

--Scale = offsets.scale

Browser = vgui.Create( "HTML" )
    Browser:SetSize( 90, 90 )
    Browser:SetPaintedManually( true )
    Browser:SetVerticalScrollbarEnabled( false )
    Browser:SetHTML( contents )
    Browser:StartAnimate( 1000 )

http.Get(“”, “”, Create_Browser)
concommand.Add( “gamerfm”, Create_Browser ) //Now we add a console command for the function we just created. It can be run straight from the console. If you look under the first couple of lines under init.lua, we [/lua]and can’t for the life of me figure out why…


oh god please help…

Make sure you’re running the script clientside, and not serverside.

Is this begin run on the server? If so, it shouldn’t be.


Ninja! :ninja:

Comeon everyone give me boxes!