GR1M Docs

Referrals

Standalone Qbox referral resource with persistent player codes, server-authoritative rewards, active playtime milestones, and an Excalibur (cyan GR1M) NUI.

v1.1.0Needs ox_lib, oxmysql, qbx_core, ox_inventory

#Requirements

#Install

  1. Folder must be named GR1M_Referrals.
  2. Ensure dependencies start before this resource.
  3. Apply server.cfg.snippet (ACE + ensure GR1M_Referrals).
  4. Restart the server or start the resource manually.

The resource auto-imports install.sql on first start and ALTERs missing columns (discord, active_playtime_minutes, frozen) if the tables already exist.

If you previously started GR1M__Referrals, stop that resource, use this folder name, and keep the same MySQL tables.

#Player Usage

#Admin

ACE gr1m.referrals.admin, plus qbx admin / god.

/referraladmin lookup <code|citizenid>
/referraladmin unlink <citizenid>
/referraladmin freeze <code|citizenid>

Unlink removes the referred link so they can enter another code. It does not claw back payouts. Freeze blocks redeem and new payouts for that character.

#Reward Config

Rewards live in config.lua under Config.Rewards.

Default ladder (bank, not cash):

WhenWhoReward
Valid codereferredsandwich + water
45 min activereferred$1,000 bank
3 h activereferrer$2,500 bank
8 h activeboth$1,000 bank each
24 h activereferrer$2,500 bank

Caps: 5 referrer payouts per week, $35,000 lifetime referrer cash. Mutual referrals, same license, and same Discord are blocked.

Money can pay while the referrer is offline. Item rewards wait until they are online.

Optional Discord audit: set Config.Webhook.

#Security Notes