Tokio Posted September 3, 2017 Posted September 3, 2017 local iras = getElementData(player, "typing") and " [ÍR...]" or "" dxDrawText ( playerName.." "..iras, sx+1, sy - offset, sx+1, sy - offset+1, tocolor(0,0,0,255), textscale*NAMETAG_TEXTSIZE, srfont, "center", "bottom", false, false, false, true, true ) What wrong? My servers: Fun: Derby(DD):
Moderators IIYAMA Posted September 3, 2017 Moderators Posted September 3, 2017 There is nothing wrong with it, you just have to set it first. Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Tokio Posted September 3, 2017 Author Posted September 3, 2017 1 minute ago, IIYAMA said: There is nothing wrong with it, you just have to set it first. I don't understand this What do you mean? 1 My servers: Fun: Derby(DD):
Moderators IIYAMA Posted September 3, 2017 Moderators Posted September 3, 2017 Elementdata is custom data you can attach to an element. With getElementData you get the data and with setElementData you attach the data. But if the data isn't attached then you can't get it. Understood? Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
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