Jump to content

Vehicle Mods Private


Recommended Posts

Ok. You can do it by three options.

First is by defining cache in meta xml 

<file src="car.txd" chache="false" />

This will cause that models will be loaded only to dynamic memory (RAM)

Nothing lands on hard drive.

But every time client connects with server. He needs to download resource every time.

If your hosting is so poor. And upload speeds are more like, communicating with voyager 1 . This will not pass the test. 

For example. Client 1 joined to server first time. He's speed connection is realy poor. He waited 20minutes to join the server. He loged out. And on the next day joined again. But this time he will wait 5minutes to download resource that he downloaded yesterday but not saved on HD. If server network speed condition will be same or worser than Clients 1. Then time will be doubled.

 

Second way is to use fileDelete()

This will do simmilar thing. But this can sometimes cause issues. To be honest, i used it once. And it makes things more complicated.

 

Third way is to compile code. This can be useful in pair with xml cache. But only if you want to secure something very fragile on client side. Idk maybe you made hashing password system on client side. (Which is terrible idea) and you want to secure this script from being seen by third person.

 

 

Edited by Prever77
Link to comment
5 minutes ago, Prever77 said:

Ok. You can do it by three options.

First is by defining cache in meta xml 

<file src="car.txd" chache="false" />

This will cause that models will be loaded only to dynamic memory (RAM)

Nothing lands on hard drive.

But every time client connects with server. He needs to download resource every time.

If your hosting is so poor. And upload speeds are more like, communicating with voyager 1 . This will not pass the test. 

For example. Client 1 joined to server first time. He's speed connection is realy poor. He waited 20minutes to join the server. He loged out. And on the next day joined again. But this time he will wait 5minutes to download resource that he downloaded yesterday but not saved on HD. If server network speed condition will be same or worser than Clients 1. Then time will be doubled.

 

Second way is to use fileDelete()

This will do simmilar thing. But this can sometimes cause issues. To be honest, i used it once. And it makes things more complicated.

 

Third way is to compile code. This can be useful in pair with xml cache. But only if you want to secure something very fragile on client side. Idk maybe you made hashing password system on client side. (Which is terrible idea) and you want to secure this script from being seen by third person.

 

 

"Third way is to compile code." how can i do this way?

Link to comment
17 hours ago, Prever77 said:

If you are using Linux you can use easely linux API. If Mac or Windows. The easiest way is to use WEB tool https://luac.mtasa.com/. It compiles lua code, idk how about model files.

A web tool that compiles code, how will it hide model files?
I have already hidden the files named .lua, only the model files are not hidden.

[url=https://www.hizliresim.com/n1eehyo][img=https://i.hizliresim.com/n1eehyo.PNG][/url]

[url=https://www.hizliresim.com/bxyrt6l][img=https://i.hizliresim.com/bxyrt6l.PNG][/url]

[url=https://www.hizliresim.com/pchlmwu][img=https://i.hizliresim.com/pchlmwu.PNG][/url]
Link to comment
1 hour ago, ironimust said:
A web tool that compiles code, how will it hide model files?
I have already hidden the files named .lua, only the model files are not hidden.

[url=https://www.hizliresim.com/n1eehyo][img=https://i.hizliresim.com/n1eehyo.PNG][/url]

[url=https://www.hizliresim.com/bxyrt6l][img=https://i.hizliresim.com/bxyrt6l.PNG][/url]

[url=https://www.hizliresim.com/pchlmwu][img=https://i.hizliresim.com/pchlmwu.PNG][/url]

try this for models https://mtaclub.eu/pcrypt

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