.:HyPeX:. Posted March 26, 2014 Share Posted March 26, 2014 Hey guys, how could i clone a function down?? Should it be like this? MySetAccountData = setAccountData i also thought about this, but could be harder and longer: function MySetAccountData(acc, data, val) local Return = setAccountData(acc, data, val) return Return end Thanks HyPeX Link to comment
RenanPG Posted March 26, 2014 Share Posted March 26, 2014 Explain what you want, i don't understand. Link to comment
WhoAmI Posted March 26, 2014 Share Posted March 26, 2014 accountData = setAccountData accountData ( account, string, value ) Link to comment
.:HyPeX:. Posted March 26, 2014 Author Share Posted March 26, 2014 accountData = setAccountData accountData ( account, string, value ) Thanks! Link to comment
WhoAmI Posted March 27, 2014 Share Posted March 27, 2014 You're welcome. But I got no idea for what are you doing this? Link to comment
.:HyPeX:. Posted March 27, 2014 Author Share Posted March 27, 2014 You're welcome. But I got no idea for what are you doing this? I'm planning on creating a resource wich would let you have all server-side functions client-side by using exports. Link to comment
Jusonex Posted March 27, 2014 Share Posted March 27, 2014 I'd strongly recommand you not to do this. If some gains control over the client and is able to execute clientside Lua code, he'll be able to execute almost everything (such as ACL manipulation, shutdown, script stealing etc.) Link to comment
.:HyPeX:. Posted March 27, 2014 Author Share Posted March 27, 2014 I'd strongly recommand you not to do this. If some gains control over the client and is able to execute clientside Lua code, he'll be able to execute almost everything (such as ACL manipulation, shutdown, script stealing etc.) i'd just add some functions, not the dangerous ones, imo. 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