Jump to content

[set/getElementData] hitElement


Recommended Posts

Posted

you can get and set element data for every single element as long as it is valid and existent element

If you find my post useful or if it helped you, please like my post :)
Ingame name: ZoeN

560x95_FFFFFF_FF9900_000000_000000.png

Posted

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)

Posted
if tonumber(getElementData(player, "theData")) == 5 then 
    outputChatBox("ur LVL 5! gz") 
end 

This?

Do you require a paid scripter? Contact me! (Unavailable) Currently I am experienced in Lua, PHP, HTML, CSS, SQL and JS.

Developer and owner of

https://projectbea.st - Project Beast
Posted
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 

33lypu1.png

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