Jump to content

Showing rectangle when player join


Piorun

Recommended Posts

Hi.

I've got a problem with showing dx rectangle when player joins. My code looked like:

  
function loginWindow () 
addEventHandler("onClientRender",root, 
    function() 
        dxDrawRectangle(0.0,0.0,1024.0,168.0,tocolor(0,0,0,204),false) 
        dxDrawRectangle(0.0,592.0,1024.0,768.0,tocolor(0,0,0,204),false) 
    end 
) 
end 
addEventHandler("onClientPlayerJoin", getRootElement(), loginWindow) 
  

but it doesn't works. Please, help.

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