philip1994 0 Posted September 18, 2013 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
Castillo 49 Posted September 18, 2013 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
philip1994 0 Posted September 18, 2013 could you please give me an example of downloading from my files as opposed to from a url? Share this post Link to post
kevenvz 0 Posted September 18, 2013 http://wiki.multitheftauto.com/wiki/Cli ... _functions Share this post Link to post
philip1994 0 Posted September 18, 2013 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
bandi94 0 Posted September 18, 2013 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
Techial 3 Posted September 18, 2013 loadstring http://www.gammon.com.au/scripts/doc.php?lua=loadstring local launch = assert(loadstring(SCRIPT-IN-STRING-HERE)) launch() --Alternative: assert(loadstring(SCRIPT-IN-STRING-HERE))() Share this post Link to post
bandi94 0 Posted September 18, 2013 "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