Problem which i can't see what's wrong with....

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…

This error is asked about regularly. In all cases the code’s been trying to run on the server, where the vgui library doesn’t exist. Could this be the problem here?