Domas_RPXP
Domas_RPXP: Advanced Experience System for FiveM

Overview
Domas_RPXP System is a robust and customizable experience (XP) system for FiveM, designed to provide a seamless and feature-rich progression system for your role-playing server. This script manages player XP, allowing server administrators to reward, query, and adjust XP for players dynamically
Features
Player Progression:
- Gain XP through various in-game activities.
- Automatically calculates player levels based on configurable XP thresholds.
Database Integration:
- Supports multiple database frameworks:
mysql-async,oxmysql, andghmattimysql. - Easily configurable for compatibility with your preferred database.
- Supports multiple database frameworks:
Real-time XP Updates:
- Set, add, or remove XP in real-time through server-side exports.
- Updates client-side XP for seamless integration with in-game systems.
Passive XP System:
- Optionally enable a passive XP system to reward players for staying active on the server.
- Customize the amount of XP, cooldown time, and frequency of passive rewards.
Admin Commands:
- Grant administrators the ability to check, set, add, and remove XP for themselves and other players.
- Configurable admin commands and permissions for fine-tuned control.
Debugging and Notifications:
- Choose between different debug modes to monitor system behavior.
- Configurable notification types: chat, notify, or print for XP-related events.
Usage
Player Connection:
- Players are automatically registered in the RPXP system when they connect to the server.
- Existing players have their XP loaded from the database, creating a seamless experience.
XP Commands:
- Players can check their own XP using the
/checkxpcommand. - Administrators can check other players' XP using the
/admincheckxpcommand.
- Players can check their own XP using the
Admin Control:
- Administrators can set, add, and remove XP from players using
/setxp,/addxp, and/removexpcommands, respectively.
- Administrators can set, add, and remove XP from players using
Passive XP:
- Enable or disable the passive XP system in the configuration (
Config.PassiveXP). - Configure passive XP amount, cooldown, and frequency to suit your server's needs.
- Enable or disable the passive XP system in the configuration (
Installation Guide
Database Setup:
- Create a table named
Domas_RPXPwith columnsid(int),identifier(varchar), andxp(int) using your preferred database management tool.
- Create a table named
Configuring Database Options:
- Set the desired database option (
mysql-async,oxmysql, orghmattimysql) in theConfig.Databasevariable.
- Set the desired database option (
Configuring Passive XP:
- Adjust the
Config.PassiveXP,Config.PassiveAmount, andConfig.PassiveCooldownvariables to tailor the passive XP system to your server's needs.
- Adjust the
Command Permissions:
- In your
server.cfg, grant the necessary ACE permissions for admin commands: csharpCopy code
- In your
add_ace group.admin domas_setxp allow add_ace group.admin domas_addxp allow add_ace group.admin domas_removexp allow
- Publishing to the Forums:
- Share the script with the FiveM community by creating a forum post. Provide comprehensive documentation, and encourage users to customize the system to suit their server's unique requirements.
Configuration Options (Config.lua):
Debug Mode (
Config.Debug):- Toggle debug mode to monitor system behavior.
Database Framework (
Config.Database):- Choose from
mysql-async,oxmysql, andghmattimysqlfor database integration.
- Choose from
XP Check Command (
Config.CheckXPCommand):- Set the command for players to check their own XP (
/checkxpby default).
- Set the command for players to check their own XP (
Admin Commands (
Config.AdminCheckCommand,Config.SetXpCommand,Config.AddXpCommand,Config.RemoveXpCommand):- Configure commands for admins to check, set, add, and remove XP.
Passive XP Settings (
Config.PassiveXP,Config.PassiveAmount,Config.PassiveCooldown):- Customize the passive XP system to reward players for staying active.
Feedback
For feedback, or feature requests, please visit our FiveM forum thread
Support and Updates
The Domas_RPXP system is designed to be easily adaptable, but if you encounter any issues or have suggestions for improvements, feel free to reach out. Regular updates and support will be provided to ensure the system remains a valuable addition to your FiveM server.
Happy role-playing!