Royalty Program - QBCore
Loyalty System
The Loyalty System is a comprehensive solution for implementing a player rewards program in your QBCore-based FiveM server. It allows you to manage loyalty cards, track points, and reward players for their engagement and in-game purchases.
Key Features
Loyalty Cards: Issue and manage loyalty cards for players.
Point System: Add or remove points based on player actions or purchases.
Dollar to Point Conversion: Automatically convert dollar amounts to points.
Transaction Logging: Keep detailed logs of all point transactions.
Player Notifications: Inform players about point changes via in-game notifications.
Core Functions
HasCard
: Check if a player has a loyalty card.GetPoints
: Retrieve a player's current point balance.AddPoints
: Award points to a player (converts from dollar amounts).RemovePoints
: Deduct points from a player's balance.
Integration
The Loyalty System is designed to be easily integrated with other server resources. All core functions are exported and can be called from any server-side script.
For detailed usage instructions and API documentation, please refer to the full documentation.
Last updated