Database

From Multi Theft Auto: Wiki
Revision as of 00:58, 4 July 2020 by Danilo (talk | contribs) (updated old information containing executeSQL* functions which is deprecated)
Jump to navigation Jump to search

MTA uses a database system based on files. This system is sqlite, an embedded relational database management system.

Files

There are two main database files for storing data:

  • internal.db: this contains user account data (usernames, hashed passwords and account data stored by using the setAccountData and getAccountData functions.
  • registry.db: this is the main database file, the scripting function executeSQLQuery work with this file.

Functions