Angel Posted February 16, 2018 Posted February 16, 2018 Good morning, Just playing around with the window.localStorage to try to save some basic settings (default skin, vehicle colour). This seems to be working, but the data is lost when restarting the game. Turns out that if a CachePath (in CefSettings) is not provided to CEF, it runs in incognito mode. So my suggestion is that there is an option to enable a persistent cache. This would allow the server creators to pass off storage of non critical data (skins, colours, etc) to the client. The more that can be distributed to the client, the less that needs to be stored on the server.
ragempdev Posted February 16, 2018 Posted February 16, 2018 Check mp.storage at clientside, it suits your needs. 1
GreenFanta Posted March 11, 2018 Posted March 11, 2018 FYI: LocalStorage will flush when user closes client. SessionStorage will flush when server restart. 1
Recommended Posts