โ ๏ธ Note: This tool was created as a temporary alternative to AutoHotkey (AHK), which currently does not work in MTA Province.
ScriptRunner is a simple GUI-based script automation tool designed for roleplay convenience in MTA:SA Province.
It allows you to store, manage, and paste predefined console commands quickly โ especially useful for faction scenarios, documents, and dynamic dialogues.
I'm not a professional developer, so this project was built step-by-step with the help of AI (Qwen & ChatGPT).
I'm sharing it in hopes that others can use, improve, or contribute to it.
โ I do NOT claim this code is perfect or worthy of "Best Code of the Year" โ but I'm open to feedback, optimizations, and contributions!
-
Enter your script in the input field, e.g.:
do ะะฐัะฟะพัั ะฒ ะบะฐัะผะฐะฝะต
me ะฑะตััั ะดะพะบัะผะตะฝัั
-
Click "Start Script".
-
In MTA:SA, open the console with F8, type
=, press Backspace, then paste with Ctrl+V. -
Press Enter to execute โ the next line will be ready for pasting.
-
Use "Skip Line" to skip a command (e.g., for conditional roleplay like "If / Else" scenarios in factions).
- โ Simple GUI for managing scripts
- โ Line-by-line pasting into MTA console
- โ Skip individual lines during playback
- โ Save/load scripts automatically
- ๐ง Easy to extend (feel free to contribute!)
- โ Autosave is unstable โ please always set it to
Off.- Enabling autosave may corrupt your scripts.
- ๐พ Scripts are saved in: %appdata%\ScriptRunner\scenarios.json
๐ก You can manually back up or edit this file if needed.
Iโd really appreciate your help improving this tool! Possible contributions:
- ๐ค Code optimization & refactoring
- ๐ Bug fixes (especially for autosave)
- ๐ผ๏ธ UI/UX improvements
- ๐งช Testing on different systems
๐ Open an Issue or Pull Request with suggestions, fixes, or enhancements!
- Initial GUI concept generated via Qwen
- Code logic and debugging assisted by ChatGPT
- Iteratively developed for real-world use in MTA Province
This project is licensed under the MIT License โ feel free to use, modify, and distribute.
Made with โค๏ธ by a Province player who just wanted a working AHK alternative.
Letโs make roleplay smoother โ together.