gordliamjack Posted July 12, 2009 Share Posted July 12, 2009 hey guys can you help my script gui is not working {help ok here is gui.lua function CreateWeaponWindow() GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(60,142,1477,824,"Weapon store v0.1",false) GUIEditor_Label[1] = guiCreateLabel(0.3825,0.034,0.2505,0.1153,"Weapons",true,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) guiSetFont(GUIEditor_Label[1],"sa-gothic") GUIEditor_Button[1] = guiCreateButton(0.0779,0.1481,0.1205,0.1141,"Exit",true,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"sa-header") GUIEditor_TabPanel[1] = guiCreateTabPanel(0.3453,0.0206,0.0007,0.0012,true,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Tab",GUIEditor_TabPanel[1]) GUIEditor_TabPanel[2] = guiCreateTabPanel(0.3324,0.1893,0.6317,0.7658,true,GUIEditor_Window[1]) GUIEditor_Tab[2] = guiCreateTab("Big Guns",GUIEditor_TabPanel[2]) GUIEditor_Button[5] = guiCreateButton(0.3537,0.0479,0.2808,0.8893,"",true,GUIEditor_Tab[2]) GUIEditor_Button[6] = guiCreateButton(0.6592,0.0479,0.2808,0.8893,"",true,GUIEditor_Tab[2]) GUIEditor_Button[8] = guiCreateButton(0.0418,0.0479,0.2808,0.8893,"",true,GUIEditor_Tab[2]) GUIEditor_Memo[1] = guiCreateMemo(0.0589,0.4793,0.2444,0.4347,"Buy this basic pack of weapons including enough to pack a punch\\n\\n\\nIn this pack you get:\\n\\n",true,GUIEditor_Tab[2]) GUIEditor_Tab[3] = guiCreateTab("Random suff",GUIEditor_TabPanel[2]) GUIEditor_Tab[4] = guiCreateTab("Army Supplys",GUIEditor_TabPanel[2]) end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function () CreateWeaponWindow() showCursor(true) guiSetInputEnabled(true) end ) ok here is meta.xml <meta> <info author="Gordon MacPherson - Revolution" description="weapon shop" /> <script src="gui.lua" type="client" /> </meta> Link to comment
Remp Posted July 13, 2009 Share Posted July 13, 2009 onResourceStart does not exist clientside, use onClientResourceStart Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now