Installation
Follow these steps to install Madd Cases on your RedM server.
Requirements
Ensure you have the following resources installed and started before madd_cases:
- jo_libs: Required for framework integration and NUI management.
- madd_ui: Required for notifications and UI components.
- oxmysql: Required for database operations.
Steps
- Extract Resource: Extract the
madd_casesfolder into your server'sresources/directory. - Database Setup: Import the
items.sqlfile provided in the resource folder into your server's database. - Configure: Open
shared/sh_config.luaand adjust the settings to your liking (e.g., framework, webhooks, rewards). - Permissions: If you are using administrative commands, ensure your group has the necessary ACE permissions.
- Start Resource: Add the following to your
server.cfg:
text
ensure jo_libs
ensure madd_ui
ensure madd_casesDatabase Information
The items.sql file ensures that the items awarded by the cases exist in your database. If you already have these items, you can skip this step or merge the data carefully.
Troubleshooting
UI not loading?
- Ensure
jo_libsis updated to the latest version. - Check if the
ui_pageinfxmanifest.luais pointing correctly tonui://jo_libs/nui/index.html.
Case doesn't open?
- Verify you have enough currency/items as defined in the case price.
- Check the server console for any SQL errors related to item distribution.