SkatCh Posted May 19, 2014 Share Posted May 19, 2014 Hi guys please how can i add my server name here : Link to comment
Castillo Posted May 19, 2014 Share Posted May 19, 2014 You can create or draw a text in there, you can either do it using GUI label or DX drawing. dxDrawText guiCreateLabel Link to comment
SkatCh Posted May 19, 2014 Author Share Posted May 19, 2014 can you please tell me how to create it please . i am newbie in scripting . Link to comment
justn Posted May 19, 2014 Share Posted May 19, 2014 You can create the dx text or gui label using guieditor which can be found on the mta community. Link to comment
SkatCh Posted May 19, 2014 Author Share Posted May 19, 2014 ok i will try it please i have one more question how can i add a picture like SAUR server , when the Progress bar appear : example Dowloading resource please wait ... Link to comment
xXMADEXx Posted May 19, 2014 Share Posted May 19, 2014 Use the Text Functions on the server-side. Link to comment
TAPL Posted May 20, 2014 Share Posted May 20, 2014 ok i will try it please i have one more question how can i add a picture like SAUR server , when the Progress bar appear :example Dowloading resource please wait ... https://forum.multitheftauto.com/viewtopic.php?f=91&t=67275 Link to comment
Snow-Man Posted May 20, 2014 Share Posted May 20, 2014 (edited) dxDrawText and use event addEventHandler("onClientRender", root, function) Edited May 23, 2014 by Guest Link to comment
#RooTs Posted May 22, 2014 Share Posted May 22, 2014 dxDrawText fixed all resolutions? how do? Link to comment
Snow-Man Posted May 23, 2014 Share Posted May 23, 2014 dxDrawTextfixed all resolutions? how do? use guiGetScreenSize() Link to comment
..:D&G:.. Posted May 23, 2014 Share Posted May 23, 2014 Dunno if you still need help but eh... here you go. addEventHandler( "onClientResourceStart", resourceRoot, function( ) local screenX, screenY = guiGetScreenSize( ) local label = guiCreateLabel( 0, 0, screenX, 15, "BlaBla Server v0.0.0", false ) guiSetSize( label, guiLabelGetTextExtent( label ) + 5, 14, false ) guiSetPosition( label, screenX - guiLabelGetTextExtent( label ) - 5, screenY - 27, false ) guiSetAlpha( label, 0.5 ) end ) 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