scaryface87 Posted July 12, 2015 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)
John Smith Posted July 12, 2015 Posted July 12, 2015 you can get and set element data for every single element as long as it is valid and existent element
Calculador Posted July 12, 2015 Posted July 12, 2015 Yes is possible, with this function: getElementData as does your title
scaryface87 Posted July 12, 2015 Author 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)
GTX Posted July 12, 2015 Posted July 12, 2015 if tonumber(getElementData(player, "theData")) == 5 then outputChatBox("ur LVL 5! gz") end This?
Calculador Posted July 12, 2015 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
scaryface87 Posted July 12, 2015 Author Posted July 12, 2015 ye no , my fault cuz i didnt rlly explain it well , Thanks its working!!
Calculador Posted July 12, 2015 Posted July 12, 2015 ye no , my fault cuz i didnt rlly explain it well ,Thanks its working!! np, enjoy!
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