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

Sometimes I dream about cheese

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

And now Aurora is back again, pm for more info.

Ex. Lead dev & L6 Staff at AUR, NGC, MTA RP & SAA.

Ex. Developer at Community of Social Gamers - CSG

Ex Founder of International Gaming Community - IGC and Union of Individual Players- UIP

9o6E8.png Ab-47

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