Jump to content

Convert getChatboxLayout() to screen.


denny199

Recommended Posts

Hey guys,

So I was making costum emotions for the chatbox, but now I need to know how I can convert the "getChatboxLayout()" to the screen position.

Let me give you an example:

local chatbox = getChatboxLayout() 
outputChatBox (chatbox["chat_width"]) 

This will return 1.5 for example, but now I want to convert this to the screen relative (like it will be 400) instead of 1.5 so that I can draw an DXrectangle over the chatbox, is this possible?

https://wiki.multitheftauto.com/wiki/GetChatboxLayout

Regards,

Danny

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