Angel Posted February 16, 2018 Share 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. Link to comment Share on other sites More sharing options...
ragempdev Posted February 16, 2018 Share Posted February 16, 2018 Check mp.storage at clientside, it suits your needs. 1 Link to comment Share on other sites More sharing options...
Angel Posted February 17, 2018 Author Share Posted February 17, 2018 thanks - just a case of RTFM. hahaha Link to comment Share on other sites More sharing options...
GreenFanta Posted March 11, 2018 Share Posted March 11, 2018 FYI: LocalStorage will flush when user closes client. SessionStorage will flush when server restart. 1 Link to comment Share on other sites More sharing options...
Recommended Posts