Jump to content

gui get width / height


drk

Recommended Posts

I've seen this in the Wiki, but it says that only get x and y position, not the height and width...

It gets the width and height of the gui element.. you probably got confused because of the example on that page.

guiGetPosition returns position and guiGetSize returns width and height.

Link to comment
Returns

This returns two floats representing the player's screen resolution, width and height.

guiGetScreenSIze() returns the client screen size dude, not the gui element.

guiGetSize:

Returns the GUI element size x and y if the function has been successful, false otherwise.

Are you sure?

I will try guiGetSize.

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