philip1994 Posted September 18, 2013 Share Posted September 18, 2013 i have created an admin GUI, which i would very much prefer players to download on login therefore other people wont have to download it? any suggestions and examples appreciated, thanks in advance. Link to comment
JR10 Posted September 19, 2013 Share Posted September 19, 2013 You can use fetchRemote or triggerLatentClientEvent to download files. You can then use fileWrite to save the files. fetchRemote triggerLatentClientEvent fileWrite Some related resources that you might find helpful: https://community.multitheftauto.com/index.php?p= ... ls&id=6339 https://community.multitheftauto.com/index.php?p= ... ls&id=7912 Link to comment
philip1994 Posted September 19, 2013 Author Share Posted September 19, 2013 thanks, that first example seems to be best for me, Im thinking setElementData to the player on login, as server event and then the clientside will check the players data, if it matches proceed to write the file. Link to comment
philip1994 Posted September 19, 2013 Author Share Posted September 19, 2013 Also, my other issue is getting that script to run once downloaded, because i cant specify it in the meta or it will download instantly anyway Link to comment
bandi94 Posted September 19, 2013 Share Posted September 19, 2013 loadstring The bad side of "loadstring" is that it can't be stopped easy , once the code is loaded you can't stop it unless you are using warpper's Link to comment
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