XFawkes Posted June 27, 2013 Posted June 27, 2013 How can I get the original HUD position,scale,size etc? I want to make a bar under the orginal hud [under the money text] but I can't find the correct position and scale which would work on all resolutions. Anyone know the correct values? European Pro Gamers Member LUA Programmer
iMr.3a[Z]eF Posted June 28, 2013 Posted June 28, 2013 Why dont you search in community for huds? To Visit Us Press Here: mtasa://5.9.206.180:22002
flashman Posted June 28, 2013 Posted June 28, 2013 Maybe make some GUI in GuiEditor, place it where u want ur bar to be and then get the GUI coordinates?
xXMADEXx Posted June 28, 2013 Posted June 28, 2013 Maybe make some GUI in GuiEditor, place it where u want ur bar to be and then get the GUI coordinates? This method wouldn't work for all resolutions. The Ultimate Lua Tutorial! | MTA PHP SDK
DiSaMe Posted June 28, 2013 Posted June 28, 2013 Ratio of HUD element and screen widths is always the same. Ratio of heights is proportional to the aspect ratio. There's no direct way to get the aspect ratio setting, but you can workaround this with a function: getWorldFromScreenPosition -
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now