https://github.com/rifleh700/mlogin
MTA:SA login panel
https://github.com/rifleh700/mlogin
login mta mtasa multitheftauto
Last synced: 21 days ago
JSON representation
MTA:SA login panel
- Host: GitHub
- URL: https://github.com/rifleh700/mlogin
- Owner: rifleh700
- License: mit
- Created: 2026-03-29T16:08:24.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2026-06-14T08:45:18.000Z (about 1 month ago)
- Last Synced: 2026-06-14T10:20:16.303Z (about 1 month ago)
- Topics: login, mta, mtasa, multitheftauto
- Language: Lua
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mlogin
Simple MTA:SA login panel
## Features
- Configurable
- Modify-friendly
- Basic security included
- Localization support (see [ml_shared.lua](ml_shared.lua))
- Can be used as a template for your own login panel
- Remember me
## Quick start
Please execute `aclrequest allow mlogin all` command before using. The resource requires the following rights
```xml
```
> [!NOTE]
> Resource must be downloaded last, so it has low priority `-1000`
## Remember me
The resource implements "Remember me" feature by encryption. However, it is not fully secure way. We use encryption since it's impossible to keep default `/login` command working at same time. U can disable this feature (see settings below) or implement your own.
More info:
- https://forum.multitheftauto.com/topic/112973-handling-user-credentials-authentication/
- https://wiki.multitheftauto.com/wiki/PasswordHash (look example)
## Settings
You can configure this resource with predefined global Lua variables (see script files). Some of important settings are below
- `ml_shared.lua` `LOGIN_REMEMBER_ME` (default value is `true`) enables "Remember me" feature
- `ml_shared.lua` `LOGIN_GUEST` (default value is `false`) allows login as guest
- `ml_main_server.lua` `LOGIN_COMMAND_DISABLED` (default value is `true`) disables `login` command
- `ml_main_server.lua` `LOGOUT_COMMAND_DISABLED` (default value is `true`) disables `logout` command
- `ml_main_server.lua` `REGISTER_COMMAND_DISABLED` (default value is `true`) disables `register` command
- `ml_main_server.lua` `FADE_CAMERA` (default value is `true`) fades in player's camera when player joined
- `ml_main_server.lua` `WAITING_FREEZE_PLAYER` (default value is `true`) freezes player when player joined
- `ml_main_server.lua` `WAITING_CAMERA` (default value is `true`) sets player's camera matrix when player joined
- `ml_main_server.lua` `LOGIN_BLOCK_IF_REGISTER_SERIAL_DIFFERENT` (default value is `false`) blocks login if current and register player's serials are different
- `ml_main_server.lua` `LOGIN_BLOCK_IF_LAST_SERIAL_DIFFERENT` (default value is `false`) blocks login if current and last player's serials are different
## Shared server-side events
- `mlogin.onPlayerLogin` `function(account)`
- `mlogin.onPlayerRegistered` `function(account)`
## Screenshots

