Mefisto_PL Posted December 24, 2012 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? ;/
Castillo Posted December 24, 2012 Posted December 24, 2012 What is the exact problem? what does 'orange' return?
Mefisto_PL Posted December 24, 2012 Author Posted December 24, 2012 https://wiki.multitheftauto.com/wiki/DxGUI/dxGetTheme
Castillo Posted December 24, 2012 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.
Mefisto_PL Posted December 24, 2012 Author 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 "?"]
Castillo Posted December 24, 2012 Posted December 24, 2012 Well, it seems like the resource 'dxGUI' is not running.
Mefisto_PL Posted December 25, 2012 Author 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
Castillo Posted December 25, 2012 Posted December 25, 2012 I had the same error, I guess the resource has bugs, you should contact the resource creator.
Mefisto_PL Posted December 25, 2012 Author Posted December 25, 2012 So you don't know where is a problem? ;/
Castillo Posted December 25, 2012 Posted December 25, 2012 I'm not the resource creator, I don't know what line could cause that error.
fmj02 Posted December 25, 2012 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
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