PPC-Trucking/PPC_Trucking-for-open.mp
This is a modified version of the popular trucking gamemode by PowerPC603 for open multiplayer (open.mp).
README.md
🛻🚛 PPC_Trucking🚌🚗
(open.mp version)
This is a modified version of the popular PPC Trucking gamemode, originally created by PowerPC603 for San Andreas Multiplayer (SA:MP). This version has been updated to work with open.mp, the modern, open-source multiplayer mod for Grand Theft Auto: San Andreas.
It includes MySQL integration for player data storage and bcrypt for secure password hashing.
[!WARNING]
MySQL integration is actively progressing! Banking system and speed cameras are now fully converted to MySQL with enhanced security. Houses and businesses are still stored in .ini files but migration is planned.
Features
- A fully functional trucking gamemode with missions, jobs, and economy systems.
- Compatible with open.mp, offering improved performance, stability, and modern features.
- MySQL Integration: Persistent data storage for player stats, vehicles, and more.
- Bcrypt Support: Secure password hashing for player accounts.
- Includes almost all necessary files and configurations to set up your server quickly.
Database Migration Status
✅ Completed: Player accounts, Banking system, Speed cameras
🔄 In Progress: Houses, Businesses, Vehicle ownership
📋 Planned: Complete file-to-database migration
Requirements
- Grand Theft Auto: San Andreas.
- open.mp Launcher: Download the latest version from open.mp.
- open.mp Server: Download the latest version from open.mp.
- MySQL Server: For player data storage.
- PAWN Compiler: To compile the gamemode (comes included in the
qawnofolder of the server package). - Dependencies:
Installation
1. Set Up open.mp Server
- Download the latest open.mp server from the official website: https://open.mp/.
- Follow the open.mp installation guide to set up your server.
2. Download the Gamemode
- Clone or download this repository
- Extract the files into your open.mp server directory.
3. Set Up MySQL Database
- Ensure you have a MySQL server running (e.g., XAMPP, WAMP, or a standalone MySQL server).
- Create a new database for the gamemode (e.g.,
ppctrucking). - Import the database schema file into your MySQL database
4. Configure MySQL Connection
-
Open the
mysql.inifile in the server directory. -
Update the connection settings with your MySQL server details. Example:
hostname = localhost username = root password = your_password database = ppctrucking
5. Install Plugins and Includes
- Place the required plugins (e.g.,
mysql,sscanf,streamer,samp_bcrypt) into thepluginsfolder. - Place the include files (e.g.,
mysql.inc,sscanf2.inc,zcmd.inc,streamer.inc,samp_bcrypt.inc) into theqawno/includesfolder.
6. Configure the Server
-
Open
config.jsonand update the following:- Set
rcon_passwordto your desired password. - Ensure the
gamemodeline points toPPC_Trucking. - Check the
pluginsline to ensure it loads the required plugins:
"legacy_plugins": [ "mysql", "samp_bcrypt", "streamer", "sscanf" ], - Set
-
If you’re running the server on Linux, ensure the plugins have the
.soextension (e.g.,mysql.so).
7. Compile the Gamemode
- Open
qawno/qawno.exe(on Windows) or use any compatible IDE. - Load
PPC_Trucking.pwnand compile it. - If the compilation is successful, the compiled
PPC_Trucking.amxfile will be generated in thegamemodesfolder.
8. Start the Server
- Run the open.mp server executable (
omp-server). - Connect to your server using the open.mp client.
Credits
- PowerPC603: Original creator of the
PPC Truckinggamemode. - CodeAlDente: For maintaining the gamemode.
- open.mp Team: For creating and maintaining the open.mp project.
- pBlueG: For the
MySQLplugin. - Sreyas-Sreelal: For the
samp-bcryptplugin. - Y_Less: For the
sscanfplugin. - Incognito: For the
streamerplugin. - Zeex: For the
zcmdcommand processor. - Edgy: For correcting const usage.
License
This project is licensed under the terms of the original PPC Trucking gamemode. Please respect the licensing terms of all included plugins and libraries.
Support
If you encounter any issues or have questions, feel free to:
- Open an issue on the GitHub repository.
- Join the open.mp Discord server for community support.
Contributing
Contributions are welcome! If you’d like to improve this gamemode, please:
- Fork the repository.
- Create a new branch for your changes.
- Submit a pull request with a detailed description of your changes.
Enjoy your trucking adventures in open.mp! 🚚
Esta página é montada com o que o GitHub publica sobre o repositório. O samp.directory não hospeda o código. Avisar de um problema com esta página