GCMod

Referral System

Core overview and runtime behavior for gcm_referral.


Overview

gcm_referral is a referral and points-based reward system with:

  • Referral code generation per player.
  • Points and claim progression.
  • Admin management for categories, items, claims, and player points.
  • NUI panel for users and staff.

Core Flow

  1. Player loads and server initializes/loads referral profile.
  2. Player opens panel using command or keybind.
  3. User can submit code, claim rewards, and buy items with points.
  4. Admins can manage categories, claims, items, and player balances.

Integrations

  • Framework auto-detection: qb-core / es_extended
  • Inventory auto-detection: ox_inventory, qs-inventory, origen_inventory, codem-inventory, qb-inventory, core_inventory
  • Database persistence through oxmysql