Norby127 Posted September 5, 2022 Posted September 5, 2022 Hi guys! I saw on many servers there was custom text on the right bottom of the screen. The default text is the MTA:SA version and I would like to ask that how can I make custom text there? Is there any server function for this?
AngelAlpha Posted September 7, 2022 Posted September 7, 2022 On 05/09/2022 at 22:16, Norby127 said: Hi guys! I saw on many servers there was custom text on the right bottom of the screen. The default text is the MTA:SA version and I would like to ask that how can I make custom text there? Is there any server function for this? maybe dxCreateScreenSource + dxDrawText
Tails Posted September 12, 2022 Posted September 12, 2022 (edited) Yes with dxDrawText and onClientRender event (see: https://wiki.multitheftauto.com/wiki/DxDrawText) local sw, sh = guiGetScreenSize() addEventHandler('onClientRender', root, function() dxDrawText('hello', 0, sh-25, sw, sh+25, tocolor(255, 255, 255, 150), 1, 'default', 'right', 'top', false, false, true) end) I think this should work. You may have to play around with the x,y,rightx,bottomx values to get it right though, I just wrote this off the top off my head. Edited September 12, 2022 by Tails
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