Luk-ry Posted July 8, 2010 Posted July 8, 2010 I have a problem with my script. When i start it i doesn't see the GUI. Here is my script: GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUI_Window = guiCreateWindow(639,241,411,550,"Title",true) GUI_Button1 = guiCreateButton(97,389,217,30,"Button1",false,GUIEditor_Window[1]) GUI_Label1 = guiCreateLabel(65,345,278,19,"Label1",false,GUIEditor_Window[1]) guiLabelSetColor(GUI_Label1,255,255,255) guiLabelSetVerticalAlign(GUI_Label1,"top") guiLabelSetHorizontalAlign(GUI_Label1,"left",false) GUI_Button2 = guiCreateButton(97,431,217,30,"Button2",false,GUIEditor_Window[1]) GUI_Button3 = guiCreateButton(97,474,217,30,"Button3",false,GUIEditor_Window[1]) end
Luk-ry Posted July 8, 2010 Author Posted July 8, 2010 The server window shows:"ERROR: GUI\GUI.lua:5: attempt to call global 'guiCreateWindow' (a nil value)
Lordy Posted July 8, 2010 Posted July 8, 2010 That's kinda logical. It's not like SAMP, where server shows client gui It has to be a client side script, not server side. Wiki states aswell that gui functions are clientside not serverside.
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