philip1994 Posted September 18, 2013 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.
Castillo Posted September 18, 2013 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.
philip1994 Posted September 18, 2013 Author Posted September 18, 2013 could you please give me an example of downloading from my files as opposed to from a url?
kevenvz Posted September 18, 2013 Posted September 18, 2013 https://wiki.multitheftauto.com/wiki/Cli ... _functions
philip1994 Posted September 18, 2013 Author 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
bandi94 Posted September 18, 2013 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)
Techial Posted September 18, 2013 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))()
bandi94 Posted September 18, 2013 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now