DarkLink Posted July 8, 2012 Posted July 8, 2012 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 Borderpatrol Project Gamemode - Under Development (80%)
Anderl Posted July 8, 2012 Posted July 8, 2012 DX only gets updated cuz it's rendered every frame. That's why. A GUI Label is not updated every frame, so, no, it doesn't get updated when you change data. "[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007
MIKI785 Posted July 8, 2012 Posted July 8, 2012 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. Lua Scripter Owner of mshost.cz MTA portal.
DarkLink Posted July 8, 2012 Author Posted July 8, 2012 Okay thanks alot guys Borderpatrol Project Gamemode - Under Development (80%)
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