Jump to content

FileDelete & Cache=False


'LinKin

Recommended Posts

Posted

Hello,

Most of us compile client scripts for protecting them. But I've found this function which apparently deletes the file downloaded in MTA:SA/mods/deathmatch/resources from each client.

fileDelete ("script.lua") 

Am I right?

Also, I've seen in meta.xml a new attribute ("cache="false")


This one is new for me, I'm not sure what it does.

Posted

1) fileDelete deltes the file but your client have to download it it each time he connect and that sucks

2) cache="flase" this saves the file on the clients RAM so he also need to download it each visit and that also sucks :P

=====> compile scripts that's the best way :D

  • Thanks 1
Posted

With fileDelete, the script file will be downloaded in the hard disk and will load in the RAM and deleted from the hard disk after the resource start (you can still steal the script while you downloading).

But with cache, the script will be downloaded directly in the RAM and not in the hard disk (almost impossible to steal the script unless you have much knowledge of ram address or whatever it called).

  • Like 1
  • Thanks 1

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