Sex* Posted March 31, 2013 Posted March 31, 2013 At first it was like this: g_Window.window = guiCreateWindow(left, top, g_Window.windowWidth, g_Window.windowHeight, "Interpolation on GUI", false) Well i made this: addEventHandler("onClientRender", root, g_Window.window = dxDrawRectangle ( x/3.8, y/3.8, x/2.02, y/2, tocolor ( 0, 0, 0, 150 ) ) But doesnt work. [2013-03-31 20:27:19] WARNING: Loading script failed: deathlist\rankingBoard-Pato_c.lua:15: ')' expected (to close '(' at line 14) near '='
TAPL Posted March 31, 2013 Posted March 31, 2013 addEventHandler("onClientRender", root, function() g_Window.window = dxDrawRectangle ( x/3.8, y/3.8, x/2.02, y/2, tocolor ( 0, 0, 0, 150 ) ) end)
NodZen Posted March 31, 2013 Posted March 31, 2013 could you post the full script? ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
Sex* Posted March 31, 2013 Author Posted March 31, 2013 Ah i already made it with guiCreateStaticImage, No help needed anymore.
Castillo Posted March 31, 2013 Posted March 31, 2013 Still, you can't do what you was doing there, dxDrawRectangle returns "true", doesn't return any element, you can't use it as parent for GUI elements. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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