[Release] LocalStorage

Description
Here’s the first addon I’m sharing,
It’s a client side storage plugin using NUI and the localstorage API

Save and retrieve data JSON locally (i.e key bindings)

Install

  • Copy folder to /server-data/resources. Resource (folder) name must be localstorage
  • Add start localstorage to server.cfg
  • :mascot:

Wouldn’t this be server side?

1 Like

It’s client side… localstorage is somewhat similar to cookies.

1 Like

Whats the point? Players will just adjust the data to their needs.

@Boss I gave one example - ‘key bindings’ which seems somewhat redundant or wasteful to be storing in SQL.
I forgot to mention the readme has an example although more contrived.
You’re meant to use the addon as a consumer otherwise it doesn’t do much of anything.

1 Like

what’s the point of using NUI (or even this resource) when you can just use the KVP natives, which are documented here for about 10 months?

from that post:

The key/value storage allows storing arbitrary data on the client side. It can be accessed with standard natives exposed to the CitizenFX scripting component

(the text about them ‘not being defined’ no longer applies since the rewritten native system)

Yes, because change logs qualify as documentation… Anyways I was unaware, maybe that says something.

Wtf? They don’t even give fucking examples. What fucking arseholes!

Yea all new devs should go back and read the change logs because you’ve failed to make documentation. Also don’t start with the sarcastic bullshit. Why’s it that I get shunned my first post by this infantile staff

:thinking: