Register Tebex Hook
Library
Updated 2 months ago ·
v1.3.7i
Server Module
lib.registerTebexHook
Registers Tebex integration commands for handling store purchases, removals, and renewals.
| Parameter | Type | Required | Description |
|---|---|---|---|
| data | table | yes | Hook configuration (see below) |
Data Properties
| Property | Type | Required | Description |
|---|---|---|---|
| id | string | yes | Unique hook identifier |
| label | string | yes | Display label |
| onPurchase | function | no | function(cfxId, args) — called on purchase |
| onRemove | function | no | function(cfxId, args) — called on removal |
| onRenew | function | no | function(cfxId, args) — called on renewal |
Registered Commands
Each hook registers up to three server commands (restricted — only executable from source 0 / console):
| Command | Trigger |
|---|---|
dirk_purchase_{id} | Purchase event |
dirk_remove_{id} | Removal event |
dirk_renew_{id} | Renewal event |
The first argument to each command is the player's CFX identifier.
i
Configure these commands in your Tebex package settings to connect store events to your server logic.
Was this page helpful?
This page was last updated on 12 March 2026