ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. copyAccountData

Function

copyAccountData

ServerAccountsIdentical to MTA:SA

Copies all data from one account to another.

Syntax

bool copyAccountData(account theAccount, account fromAccount)

Arguments

theAccountaccount
The target account.
fromAccountaccount
The source account.

Returns

true on success.

Example

copyAccountData(getAccount("nowe_konto"), getAccount("stare_konto"))