Step 1: Add a Custom Field
When creating or editing a product in your RMZ dashboard, add a custom field that asks the customer for their FiveM identifier.
The customer fills this in at checkout. The value is available in your commands as the
{player_id} variable.
Step 2: Create a FiveM Benefit
- In your dashboard, go to Benefits > Create Benefit
- Select type FiveM Commands
- Select the target server(s) where commands should execute
- Enter the commands to run when a purchase is completed
Command Variables
Use these variables in your commands — they are replaced automatically with the actual values at execution time:Command Examples
Revoke Commands (Optional)
Define commands that execute automatically when an order is refunded or cancelled. This lets you undo the benefits that were given.Revoke commands use the same variables as regular commands. They are executed on the same server(s) configured in the benefit.
Step 3: Attach the Benefit to Your Product
After creating the FiveM benefit:- Go to the product settings
- In the Benefits section, attach the FiveM benefit you created
- Save the product
Full Example
A “VIP Package” product setup:
When a customer enters their Steam ID at checkout and completes the purchase, your server runs:

