Jump to content

getElementData


KBilly

Recommended Posts

Posted

Hello, today I'm encountering a problem based around getElemetData and I am not sure on what to do. So basically I have a table which when you view it shows the players hours, but I also have a script which updates the hours every hour and adds one hour. So my question is how can I get this script to update to like getElementData every hour or so, when I load it after the script adds the hour it's updated but it doesn't update in the table it's self.

getElementData( player, 'hoursplayed' ) 

  • Moderators
Posted
I have a table which when you view it shows the players hours

By "table" you mean a Lua table or a gridlist ? (I'm pretty sure you meant gridlist though)

Posted

Yeah but it like needs to update every so often if that makes sense I have it on my scoreboard already it just doesn't update every hour like or eveytime I open the scoreboard...

Posted

I already tried it, it doesn't even update when I restart the scoreboard script, it only updates when the player reconnects on the scoreboard anyways

Posted
I already tried it, it doesn't even update when I restart the scoreboard script, it only updates when the player reconnects on the scoreboard anyways

Post the code

Posted

Which part, I mean the part I already pasted is all I got regarding the Data the other part is simply drawing it onto the scoreboard it's self

Posted
Which part, I mean the part I already pasted is all I got regarding the Data the other part is simply drawing it onto the scoreboard it's self

The part that you tried to use timer on it

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