Installation
๐ Requirements
Before installing Prism Rewards, ensure you have the following dependencies:
- ox_libย - Required for UI and utilities
- oxmysqlย - Required for database operations
- mugshot64ย - Required for profile players
- Compatible framework: QB-Core, QBX, or ESX
๐ฆ Installation Steps
1. Download & Extract
- Download the
prism_rewardresource - Extract the folder into your serverโs
resourcesdirectory
2. Add to Server Config
Add the following to your server.cfg:
ensure ox_lib
ensure oxmysql
ensure prism_reward
ensure mugshot64Note: Ensure that
ox_libandoxmysqlare started beforeprism_reward
3. Database Setup
The database tables will be automatically created on first server start:
prism_rewards- Stores player progression dataprism_leaderboard- Stores leaderboard rankingsprism_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:
- Joining your server
- Press
L(default key) or type/rewardsto open the menu - Press
F10(default key) or type/trackerto open the menu - 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:
- Quests - Edit available quests in the config
- Shop Items - Configure premium shop items
- Leaderboard Periods - Configure daily/weekly/monthly resets
- 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
oxmysqlis running correctly - Check console for SQL errors
- Verify database credentials in
oxmysqlconfig
Menu Not Opening
- Verify
ox_libis installed and updated - Check for keybind conflicts with L
- Try using
/rewardscommand instead
Framework Not Detected
- Ensure your framework (QB-Core/QBX/ESX) is started before
prism_reward - Check framework export names match your version