⌨️ Game Server Commands
Configure Tebex to send commands to your FiveM server.
Setting Up Commands
- In Tebex, go to Game Servers
- Select your FiveM server
- Go to Commands
- Add the command for each package
Command Format
donatorPurchase {"transactionId":"{transaction}", "package":"{packageName}"}Tebex Variables
| Variable | Description |
|---|---|
{transaction} | Unique transaction ID |
{packageName} | Name of purchased package |
{username} | Player's username |
{id} | Player's game ID |
Example Setup
For a package named starter_pack:
Command:
donatorPurchase {"transactionId":"{transaction}", "package":"starter_pack"}Triggered: On purchase (not on chargeback)
Important Settings
- Execute on: Purchase (not renewal)
- Require player online: No (command saves to database)
- Execute once: Yes
Testing
- Create a test package with $0.00 price
- Purchase the test package
- Check your server console for the command
- Verify the transaction appears in database
Troubleshooting
Command not executing
- Verify your Tebex server key is correct
- Check if the server is connected in Tebex
- Look for errors in server console
Package not recognized
- Ensure package name matches config exactly
- Check for typos and case sensitivity