Jump to content

Copying a MTA function?


.:HyPeX:.

Recommended Posts

Posted

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

Posted
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.

Posted

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.)

Posted
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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...