#Store and Get Data from Client Cache
1 messages · Page 1 of 1 (latest)
What you are looking to do is to use KVP storage. Don't use it for anything sensitive like money, hunger, inventory. Just non sensitive things like hud settings or stuff like that
I would like create a custom blips manager ressources. I would like store what blips the user want to show or hide
yeah that would be fine to use KVP storage for
https://docs.fivem.net/natives/?_0x21C7A35B and https://docs.fivem.net/natives/?_0x5240DA5A are the ones you will want to use
Ok WE have one fnc by type of variable right ?
yeah but you should just store everything in there as like a json string. Here is a resource that sort of modularizes it. I can't speak to the quality of the rest of the resource though
https://github.com/0xWaleed/0xludb-fivem/blob/main/kvp_driver.lua
Thanks a lot !