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