WillyRL Posted July 9, 2014 Posted July 9, 2014 Hallo, I'm come again , and asking you again I have a problem , I want make a HUD , But i don't know how to get , X, Y, and Z coordinates from my screen , how can i get a right X, Y , Z , Thank you guys.
xXMADEXx Posted July 9, 2014 Posted July 9, 2014 Your screen is 2D, there is no Z value, and what do you mean you don't know how to get the position? The Ultimate Lua Tutorial! | MTA PHP SDK
WillyRL Posted July 9, 2014 Author Posted July 9, 2014 I'm sorry i'm forgot , I mean X and Y value , How can i get X and Y Value for my HUD example: I want My HUd on Top Right , or Top Left , how to get the X and Y Value, Thank you.
xXMADEXx Posted July 9, 2014 Posted July 9, 2014 Use the function getGetScreenSize. The Ultimate Lua Tutorial! | MTA PHP SDK
Max+ Posted July 9, 2014 Posted July 9, 2014 local sValue , nValue = guiGetScreenSize() - New , Kill System - New, GameMode Intro - Leve / Exp System - New nametag showing style - New , Hud For Players - Skin Selection from SA-MP - Money System / Buy Weapons - Drop Weapons - New, Flood System - New , Group Assign - Gun license For Weapons - Random Rule System For Money
_DrXenon Posted July 9, 2014 Posted July 9, 2014 x,y = guiGetScreenSize() -- to add it on center use: x*0.5,y*0.5 as x,y values -- not exactly in center.. just an example -- to add it on top right try: x*0.9,y*0.2 as x,y values There are width and height values also, don't forget em' ●●● Rage Gaming Society Coming Soon ●●●
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