Mefisto_PL Posted December 24, 2012 Share Posted December 24, 2012 I'm using dxgui_v1 from mtasa.community.com and I have problem with export functions. function dxGUI ( ) local orange = export.dxGUI:dxGetTheme("Orange") export.dxGUI:dxCreateWindow(0, 0, 0.5, 0.4, "informations", true, orange) end addEventHandler("onClientResourceStart", getRootElement(), dxGUI ) What's wrong? ;/ Link to comment
Castillo Posted December 24, 2012 Share Posted December 24, 2012 What is the exact problem? what does 'orange' return? Link to comment
Mefisto_PL Posted December 24, 2012 Author Share Posted December 24, 2012 https://wiki.multitheftauto.com/wiki/DxGUI/dxGetTheme Link to comment
Castillo Posted December 24, 2012 Share Posted December 24, 2012 You didn't answer my first question, and I wasn't asking what is it supposed to return, because I already know, I'm asking if it's returning what it should. Link to comment
Mefisto_PL Posted December 24, 2012 Author Share Posted December 24, 2012 function dxGUI ( ) local orange = exports.dxGUI:dxGetTheme("Orange") exports.dxGUI:dxCreateWindow(0, 0, 0.5, 0.4, "informations", true, orange) end addEventHandler("onClientResourceStart", getRootElement(), dxGUI ) exports: Call to non-running client resource (dxGUI) [string "?"] Link to comment
Castillo Posted December 24, 2012 Share Posted December 24, 2012 Well, it seems like the resource 'dxGUI' is not running. Link to comment
Mefisto_PL Posted December 24, 2012 Author Share Posted December 24, 2012 It's running.. Link to comment
Castillo Posted December 24, 2012 Share Posted December 24, 2012 Are you sure that is called "dxGUI"? Link to comment
Mefisto_PL Posted December 25, 2012 Author Share Posted December 25, 2012 Okey, I change it, but know I have another problem.. When I start resource where is window created and dxgui resource then I have lags and Errors. Error: Aborting; infinite running script in dxgui_v1 Link to comment
Castillo Posted December 25, 2012 Share Posted December 25, 2012 I had the same error, I guess the resource has bugs, you should contact the resource creator. Link to comment
Mefisto_PL Posted December 25, 2012 Author Share Posted December 25, 2012 So you don't know where is a problem? ;/ Link to comment
Castillo Posted December 25, 2012 Share Posted December 25, 2012 I'm not the resource creator, I don't know what line could cause that error. Link to comment
fmj02 Posted December 25, 2012 Share Posted December 25, 2012 function dxGUI ( ) local orange = exports.dxGUI:dxGetTheme("Orange") exports.dxGUI:dxCreateWindow(0, 0, 0.5, 0.4, "informations", true, orange) end addEventHandler("onClientResourceStart", getRootElement(), dxGUI ) exports: Call to non-running client resource (dxGUI) [string "?"] exports.dxGUI:dxCreateWindow(resourceRoot,555,600,555,555,"blablalb",tocolor(255,255,255,255),"default","Orange") this should work and make sure the resource is really named dxGUI 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