Jump to content

CEGUI MTA - BEGINNER


DARTH

Recommended Posts

function ini()
	wnd = guiCreateWindow(1063, 243, 235, 323, "test", false)
	btn = guiCreateButton(71, 76, 101, 44, "open", false, wnd)
end

addCommandHandler("o",ini)

I can't open the gui at all, even using guiSetVisible inside the function and nothing! Can someone help me?

returns me the following error on the console :

attempt to call global 'guiCreateWindow'  (a nil value)

Edited by DARTH
Link to comment
  • Scripting Moderators
4 minutes ago, DARTH said:

attempt to call global 'guiCreateWindow'  (a nil value)

Make sure your script is set to client in meta.xml

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...