Custom license plates can only be issued for redemption via /redeem or by issuing the player a customplate item. They cannot be collected directly, as the player must be inside a vehicle to apply the plate.
Important:
Custom plates do not require the customer to enter their CSN during purchase.
The player must be online for the deliverable command to execute.
Issuing Custom License Plates for Redemption
This method issues the custom plate as a redeemable purchase, allowing the player to redeem it using /redeem while inside a vehicle.
Creating the Tebex Package for Custom Plate Redemption
Create a new Tebex package.
Add an appropriate title, description, and image.
Click Add Deliverable.
Select Game Server Commands.
Under Game Servers, select your game server.
Command Configuration
Under When the package is purchased, enter a variation of the following command:
tebex_addvehicleplateredeem {hexid} {transaction}
Additional Settings
Game Server to Execute On:
Select your server
Require Player to Be Online:
Save and publish the package.
Once purchased, the custom plate will be ready for redemption via /redeem immediately if the player is online, or the next time they join the server. The player will receive an in-game notification when it becomes available.
Issuing Custom License Plates via Item
Custom license plates can also be issued by giving the player a customplate item, which they can redeem or collect depending on your configuration.
Configuring the Custom Plate Item
In core > shared.gta5.lua, add the following item to Shared.Items:
Creating the Tebex Package for the Custom Plate Item
Create a new Tebex package.
Add an appropriate title, description, and image.
Click Add Deliverable.
Select Game Server Commands.
Under Game Servers, select your game server.
Command Configuration
Under When the package is purchased, enter a variation of the following command:
Additional Settings
Game Server to Execute On:
Select your server
Require Player to Be Online:
Save and publish the package.
Once purchased, the player can receive the custom plate item via /redeem or collect it from a configured collection location (depending on your script configuration). The player will be notified in-game when it becomes available.
When the player receives the customplate item they can use this when standing and facing a vehicle they own. Once the items used they'll be prompted to enter the custom plate text they desire. If the plate already exists they'll be notified and asked to choose new plate text. Once valid plate text is entered they'll be set into an animation alongside a five second progress bar and the plate change will complete.
Once the plate change is complete the customplate item is removed from the player.