Jump to content

guiSetSize Issue


Recommended Posts

Try this:

It won't even work like that, I think this is a bug of MTA.

addCommandHandler("ss", function()  
    local sW, sH = guiGetScreenSize() 
    local width, height = 455, 415 
    local left = sW - width - 1 
    local top = sH/2 - height/2 
    local w = guiCreateWindow(left, top, 10, height, "", false) 
    --guiSetSize(w, 1, height, false) 

In my case it creates the window, but it's width can't be less than 96

Link to comment
  • Moderators


Because write the code manualy is always better in quality, performance and managing.

and it is hard to move dx gui's.


What if you try a black static image as background?

But you lose the move/scale ability with the cursor.

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