Jump to content

[set/getElementData] hitElement


Recommended Posts

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

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