benwilkins Posted February 20, 2012 Share Posted February 20, 2012 Above the MTA:SA 1.3* I have seen some severs have custom text above it, how would I go about that? Link to comment
Castillo Posted February 20, 2012 Share Posted February 20, 2012 guiCreateLabel dxDrawText Link to comment
benwilkins Posted February 20, 2012 Author Share Posted February 20, 2012 GUIEditor_Label[1] = guiCreateLabel(715, 568, 78, 17, "Version 2.0.4" ,false) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"bottom") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"right",false) Ive done that, but its find in one aspect ration, but in a differant resolution its in the middle of the screen, help? Link to comment
arezu Posted February 20, 2012 Share Posted February 20, 2012 (edited) local screenWidth, screenHeight = guiGetScreenSize() GUIEditor_Label[1] = guiCreateLabel(715, 568, 78, 17, "Version 2.0.4" ,false) guiLabelSetColor(GUIEditor_Label[1],255,255,255) local labelWidth = guiLabelGetTextExtent(GUIEditor_Label[1]) local labelHeight = guiLabelGetFontHeight(GUIEditor_Label[1]) guiSetPosition(GUIEditor_Label[1], screenWidth - labelWidth, screenHeight - labelHeight - 100, false) change the - 100 on setPosition to whatever value is needed Edited February 20, 2012 by Guest Link to comment
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