Jump to content

Cache


ThePCGuy

Recommended Posts

Is this option ''cache'' in the meta.xml file safe?

Cause after searching the forums for protecting your client sided files i came across ''fileDelete'' but then a user on the forum posted that it's still possible to get the scripts after quickly disconnecting after the files have been finished downloading.

Link to comment
  • Moderators

It is much better then fileDelete.

Only scripts are protected, other files like images/audio aren't protected this way.

The only way to protect images, is changing them to textures and delete them immediately.

Audio can't be protected, as simple as that.

You must be a really prof. if you can get the client files from the RAM.

Link to comment

Yes, the file is downloaded and loaded into ram but never gets saved on the harddrive.

But mind you, the scripts that has cache="false" in meta wont wait for all files to finish downloading before starting to load which means if you for example try to open a file, draw an image or replace a texture etc before onClientResourceStart has been triggered then it will fail.

While if you have cache="true" (default) then it will wait for all files to finish downloading before loading the script.

Link to comment

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