scaryface87 Posted July 12, 2015 Share Posted July 12, 2015 Hello , Is it possible to get the value of the elemnt data from an hitelement? for example setElementData(hitElement,"data",this value) Link to comment
John Smith Posted July 12, 2015 Share Posted July 12, 2015 you can get and set element data for every single element as long as it is valid and existent element Link to comment
Calculador Posted July 12, 2015 Share Posted July 12, 2015 Yes is possible, with this function: getElementData as does your title Link to comment
scaryface87 Posted July 12, 2015 Author Share Posted July 12, 2015 Hello , Maybe i said it wrong but i mean the last value like if getElementData(player,"theData",5) then outputChatBox("ur LVL 5! gz") end this i mean(this isnt working) Link to comment
GTX Posted July 12, 2015 Share Posted July 12, 2015 if tonumber(getElementData(player, "theData")) == 5 then outputChatBox("ur LVL 5! gz") end This? Link to comment
Calculador Posted July 12, 2015 Share Posted July 12, 2015 Hello ,Maybe i said it wrong but i mean the last value like if getElementData(player,"theData",5) then outputChatBox("ur LVL 5! gz") end this i mean(this isnt working) Ohh okay, sorry , yes you could use this: local Data = getElementData(player,"theData") if (Data == 5) then outputChatBox("ur LVL 5! gz") end or as my friend said: if tonumber(getElementData(player, "theData")) == 5 then outputChatBox("ur LVL 5! gz") end Link to comment
scaryface87 Posted July 12, 2015 Author Share Posted July 12, 2015 ye no , my fault cuz i didnt rlly explain it well , Thanks its working!! Link to comment
Calculador Posted July 12, 2015 Share Posted July 12, 2015 ye no , my fault cuz i didnt rlly explain it well ,Thanks its working!! np, enjoy! Link to comment
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