Sign in to follow this  
philip1994

download on client

Recommended Posts

how can i make it so, only on when the type a command, they download the client side data, for example if i had a vehicle mod system, they will only download when they type "example" ? thanks in advance.

Share this post


Link to post

To make a custom download system you can use fetchRemote, if you use it client side, it'll only work if you use the same host as the server.

Share this post


Link to post

my issue is how do i make that lua file run once its transferred to the client? because if i specify it in the meta then it will just download instantly

Share this post


Link to post

Make the load function with triggerClientEvent.

in meta.xml add only the .lua files , after manual downloaded the .dff / txd you simpli call the loading function.

triggerClientEvent(player,"loadMods",player)

Share this post


Link to post

"loadstring" shoud be use when there are no other options , bk to stop the loaded code you need to unload EventHandlers , to do that you need warppers , with warppers you will warp your own EventHandlers to and not only the loadstring one , so there is much more work.

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.