Jump to content

dxdrawtext


kukimuki

Recommended Posts

why i cant see the text?

white = "#FFFFFF"

local s = Vector2(guiGetScreenSize());
local show = false;

function render()
    dxDrawRectangle(s.x/2-200,s.y/2-100,400,200,tocolor(0,0,0,180));
    dxDrawRectangle(s.x/2-203,s.y/2-100,3,200,tocolor(255,0,0,180));

    dxDrawText("Immortal Play - Admin Help",0,s.y/2-100,s.x,200,tocolor(255,255,255), 1, e:getFont("rage", 15), "center", "top");

end
addEventHandler("onClientRender",root,render);

addEventHandler("onClientKey",root,function(button,state)
if show then 
    if button == "mouse1" and state then

    end
end
end);

 

Link to comment
  • 2 weeks later...
On 28/06/2023 at 20:37, kukimuki said:

why i cant see the text?

white = "#FFFFFF"

local s = Vector2(guiGetScreenSize());
local show = false;

function render()
    dxDrawRectangle(s.x/2-200,s.y/2-100,400,200,tocolor(0,0,0,180));
    dxDrawRectangle(s.x/2-203,s.y/2-100,3,200,tocolor(255,0,0,180));

    dxDrawText("Immortal Play - Admin Help",0,s.y/2-100,s.x,200,tocolor(255,255,255), 1, e:getFont("rage", 15), "center", "top");

end
addEventHandler("onClientRender",root,render);

addEventHandler("onClientKey",root,function(button,state)
if show then 
    if button == "mouse1" and state then

    end
end
end);

 

dxDrawText("Immortal Play - Admin Help", 0, s.y/2-100, s.x, 200, tocolor(0, 0, 0), 1, e:getFont("rage", 15), "center", "top");

 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...