Jump to content

Are GUIs sync with data?


Recommended Posts

I know that dxDrawText are sync with getElementData.. if my dxDrawText uses data from elements, and I change that data, dxDrawText will show the changes..

And a text on a label of a gui ? also updates when I change data?

Thanks lot in advance ;)

Link to comment

You can do it easily using onClientElementDataChange

addEventHandler ( "onClientElementDataChange", getRootElement(), 
function (dataName) 
    guiSetText(label, "Data: " .. getElementData(source, dataName)) 
end ) 

Something like that... it should work.

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