Tebex

Server Connection

  1. Navigate to Integrations > Game Servers in the Tebex Control Panel.
  2. Click Connect Game Server.
  3. Enter a server name and click Continue.
  4. Copy the secret key provided by Tebex.
  5. Add the secret key to server.cfg:
sv_tebexSecret "YOUR_TEBEX_SECRET_KEY"
  1. Restart the FiveM server.
  2. Return to Tebex Control Panel and click Continue to verify.

Package Creation

  1. Open package settings and click Game Server Commands.

Game Server Commands

  1. Select your connected server.

Select Server

  1. Click Add Command.

Add Command

  1. Enter the coin grant command:
on_purchase_vcoin {"transid": "{transaction}", "coin": "300"}

Replace 300 with the desired coin amount.

Enter Command

  1. Click the gear icon next to the command.

Command Settings

  1. Set execution trigger to Execute the command even if the player is offline.

Offline Execution

  1. Save and publish package.

Notes

  • Tebex transactions may take up to 10 minutes to process.
  • Ensure the command execution setting permits offline execution.