Jump to content

Help me with the top bar chat


Hero192

Recommended Posts

Hey,

I want to make my own topbarchat, I scripted the basic, but now I want to know how to make the rectangle and text moving from top to down

I tried that but I failed

Part of my code:

local sx,sy = guiGetScreenSize() 
for index, message in ipairs(messages) do 
        dxDrawRectangle(sx/2 - 402, (index*21), 562, 21, tocolor(0, 0, 0, 190),false) 
        dxDrawText(message[1], sx/2, (index*21), sx/2, 5, message[3], 0.90, "default-bold", "left", "top", false) 
    end 

Original Drawed render,

dxDrawRectangle(402, 0, 562, 21, tocolor(0, 0, 0, 188), false) 
        dxDrawText(" ", 534, 4, 834, 21, tocolor(255, 255, 0, 200), 0.90, "default-bold", "left", "top", false, false) 

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...