PartyMTA Posted January 11, 2015 Share Posted January 11, 2015 Hello guys. I have 2 scripts with some directx codes in it. Whenever someone clicks on a button the second script goes on but also lets the first script on. But how do i let the first script keep overlaying the second one? First Script: function renderAlways() arena = getElementData(gLP,"user.arena") if arena then dxDrawText("Arena: "..arena,x/19,y/1.05,x,y,tocolor(255,255,255,255),2) else dxDrawText("Arena: None/Lobby",x/19,y/1.05,x,y,tocolor(255,255,255,255),2) end end addEventHandler("onClientRender",root,renderAlways) Second: function carballGui() addEventHandler("onClientRender",root,directxcb) end function directxcb() dxDrawRectangle(x/x,y/y,x,y,tocolor(0,180,0,255)) dxDrawText("Welcome to Carball!",x/2.6,y/18,x,y,tocolor(255,255,255,255),3) end The second triggers when i press a custom button (Which works). So how do i keep the first script overlaying the second one? (Both are in 2 different files) I want dxDrawText("Arena: "..arena,x/19,y/1.05,x,y,tocolor(255,255,255,255),2) keep overlay always. No matter what is in the same position Link to comment
Gallardo9944 Posted January 11, 2015 Share Posted January 11, 2015 viewtopic.php?f=91&t=82254 Link to comment
PartyMTA Posted January 11, 2015 Author Share Posted January 11, 2015 Thank you. Close please. 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