Jump to content

The ability to move the chatbox position


Exploit

Recommended Posts

I'd like to be able to change the chat-box position, say to the bottom left instead of where it is.

This would enable us to make more customized user interfaces etc,

Is this possible to do yet? If no is it possible to be implemented in the future?

Thanks in advance, Exploit

Link to comment

What I'd like is a command to set the starting x and y and the width and height of the chat-box. I don't know if that's possible but it would enable us developers to have more customization and personality in our user interface on the server, especially for those who want to change the mini-map and status bars etc.

Thanks.

Link to comment
You can't change the chat-box position but you can make your own custom chat-box with DX functions.

Thanks 50p, I appreciate your constructive reply.

But if I design my own custom chat-box in dx, will I be able to hide the current chat-box?

Thanks again.

PS to robhol: I never said the chat-box isn't right where it is, I just asked if developers could change their chat-box position since I'd like to implement a custom User Interface, thank you.

Link to comment
  • Discord Moderators
will I be able to hide the current chat-box?

https://wiki.multitheftauto.com/wiki/ShowChat

A function which is used to show or hide the player's chat.

Something I found laying around in my resources folder, provides an example to /toggle the chatbox.

g_Root = getRootElement()
g_ResRoot = getResourceRootElement(getThisResource())
g_Me = getLocalPlayer()
g_Show = true
 
function testCommand()
g_Show = not g_Show
showChat(g_Show)
end
addCommandHandler("chat",testCommand)

You could then obviously replace the CommandHandler with an event handler related to when you want it off.

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...