Jump to content

MTA right bottom text


Norby127

Recommended Posts

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

Link to comment

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 by Tails
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...