Jump to content

Data storage


Recommended Posts

Posted

Depends how you want to use it,

The fast way for scripting is with elementData, but more bandwidth usage, but less updates needed to make for every player

Or

Tables, you need to update it, and if you want to get the table result on the client side you need to trigger the table to the client's pc, with elementData isn't this needed, you can with elementData loop trough all the players and then get their element data.

So, it depends how you want your scripting way, fast with more bandwidth usage or tables with less bandwidth usage. I'm using for all my scripts tables for storage, since it's pretty easy(in my way atleast).

Posted

I hear using tables is much more easier and more dependable. I'd suggest tables, or if you want a temp data, use setElementData, in-case you want permanent data until the data variable has changed, use setAccountData

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