Skip to Content

Installation

๐Ÿ“‹ Requirements

Before installing Prism Rewards, ensure you have the following dependencies:

๐Ÿ“ฆ Installation Steps

1. Download & Extract

  1. Download the prism_reward resource
  2. Extract the folder into your serverโ€™s resources directory

2. Add to Server Config

Add the following to your server.cfg:

ensure ox_lib ensure oxmysql ensure prism_reward ensure mugshot64

Note: Ensure that ox_lib and oxmysql are started before prism_reward

3. Database Setup

The database tables will be automatically created on first server start:

  • prism_rewards - Stores player progression data
  • prism_leaderboard - Stores leaderboard rankings
  • prism_redeemed - Tracks Tebex redemptions

No manual SQL import is required!

4. Configure Webhooks

Edit server/serverConfig.lua and add your Discord webhooks:

ServerConfig = { Webhooks = { QuestComplete = 'YOUR_WEBHOOK_URL', LevelUp = 'YOUR_WEBHOOK_URL', PurchaseLog = 'YOUR_WEBHOOK_URL', TebexRedeem = 'YOUR_WEBHOOK_URL' } }

5. Configure Profile Pictures

If you select mugshot64, ensure the resource name matches your installation.

AvatarImage = { enabled = true, type = 'mugshot64', -- 'steam', 'discord', 'mugshot64', or 'default' mugshotResourceName = 'MugShotBase64' },

If you select discord or steam, you need to configure the API in server/serverConfig.lua

SteamApiKey = "YOUR_STEAM_API_KEY_HERE", DiscordBotToken = "YOUR_DISCORD_BOT_TOKEN_HERE",

6. Restart Server

Restart your FiveM server or start the resource:

restart prism_reward # or start prism_reward

โœ… Verify Installation

Once the server starts, verify the installation by:

  1. Joining your server
  2. Press L (default key) or type /rewards to open the menu
  3. Press F10 (default key) or type /tracker to open the menu
  4. Check server console for any errors

If you see the Prism Rewards menu, installation is complete! ๐ŸŽ‰

๐Ÿ”ง First-Time Configuration

After installation, youโ€™ll want to configure:

  1. Quests - Edit available quests in the config
  2. Shop Items - Configure premium shop items
  3. Leaderboard Periods - Configure daily/weekly/monthly resets
  4. Rewards - Set level-up and milestone rewards

See the Config page for detailed configuration options.

๐Ÿ†˜ Troubleshooting

Database Tables Not Created

If tables arenโ€™t created automatically:

  • Ensure oxmysql is running correctly
  • Check console for SQL errors
  • Verify database credentials in oxmysql config
  • Verify ox_lib is installed and updated
  • Check for keybind conflicts with L
  • Try using /rewards command instead

Framework Not Detected

  • Ensure your framework (QB-Core/QBX/ESX) is started before prism_reward
  • Check framework export names match your version
Last updated on