Store20 min
Sell a VIP with Pix and automatic delivery
A live store that takes Pix and delivers the VIP to the character on its own, with the first order delivered.
Store20 min
A live store that takes Pix and delivers the VIP to the character on its own, with the first order delivered.
In this tutorial you open your city’s store, connect a Pix provider, add a VIP with in-game delivery, put the website live and follow the first purchase all the way to the character. The money goes straight to the city’s provider account, without passing through FiveDash. It’s for the owner or whoever runs the store.
oxmysql, mysql-async or ghmattimysql). See Connect your city to FiveDash.fivedash/loja.lua: Enabled = true, which is the default.Open Store in the sidebar. Under What will you sell?, tick VIPs (and whatever else the city sells). Under Store color, pick a color. Click Create store.
Setup has four steps. Each one is saved as soon as you finish it, so you can close the page and pick up later.
On the Get paid step, pick the provider and paste its credential:
| Provider | Pix | Credential | Starts with |
|---|---|---|---|
| Mercado Pago | Yes (and card) | Access Token | APP_USR- |
| AbacatePay | Yes | API key | abc_prod_ |
| Stripe | When it’s turned on in your Stripe account | Restricted key | rk_live_ |
| PicPay | Yes | Client ID and Client Secret | No prefix |
Under Use Mercado Pago for (your provider’s name shows), turn on Pix. Click Connect Mercado Pago. It worked when Account connected shows. Where to get each credential is in Payments.
On the In-game delivery step, answer How does the buyer say who gets it?:
Click Continue. On the last step, FiveDash checks the server and payments. Click Open store. It worked when Cidade Exemplo is ready! shows (with your server’s name). Click Go to the store.
If something is missing, fix the item it points to and click Check again:
| Message | What to do |
|---|---|
| Install FiveDash on the server | Install the resource and connect the server |
| Restart the server to finish the update | Restart the server or run restart fivedash |
| Turn on delivery on the server | Set Enabled = true in fivedash/loja.lua and run restart fivedash |
| Framework not recognized | Run fivedash detect in the server console |
Products live inside categories. In Store → Categories, click the VIPs shortcut under Based on what you sell (or New category) and then Create category.
Now go to Store → Products, pick the VIPs category and click Add product:
vip_gold) and the Duration in days (default 30) or Permanent.Saved as On sale, the product shows in the store right away. If its card shows No delivery set up, the player pays and gets nothing in the city.
Only on FiveM
What the Framework group becomes depends on the framework:
| Framework | The group becomes |
|---|---|
| ESX | A job in job_grades (police or police.2) or, with any other name, the ACE group group.<name> |
| QBCore | A job in QBCore.Shared.Jobs, a gang in Shared.Gangs or, with any other name, the ACE group qbcore.<name> |
| Qbox | A job or gang or, with any other name, the ACE group group.<name> |
| ox_core | An ox_core group that exists in ox_group_grades |
| vRP / vRPex | A group in vrp/cfg/groups.lua |
| Creative Network Enchanted | A group in vrp/config/Groups.lua |
For an ACE group, give it its permissions in server.cfg and check them in scripts with IsPlayerAceAllowed. For example, for the group.vip group:
add_ace group.vip vip allow
Only on RedM
On RedM, the Framework group follows the framework:
job.<name> (or job.<name>.<grade>, like job.sheriff.2) becomes a job; char.<name> becomes the character’s group (up to 10 letters); any other name becomes the ACE group group.<name> on the Steam.vallaw or vallaw.2); any other name becomes the ACE group rsgcore.<name> on the license.To sell horses and wagons, see Sell horses and wagons on RedM.
Go to Store → Website. At the top, turn on the switch next to Offline: it changes to Live. Click Save in the bar that shows up at the bottom. It worked when The website is live shows.
The website is on the free address <address>.fivedash.shop (e.g. cidadeexemplo.fivedash.shop). To get the link, open the View site menu at the top of the store pages and click Copy address. Colors, logo, banner and your own domain (on Pro or above) are in Store website.
First, check that payments reach FiveDash. In Store → Payments, click Test on the provider’s card and then Create charge. Pay the R$ 1,00 Pix QR code. It worked when Payment confirmed! shows. With a production key it’s a real charge, and the money goes to your provider account (minus the fee).
Then buy the VIP as a player:
The order page updates by itself once the payment goes through.
In Store → Orders, the order is at the top of the list with Payment on Paid. When the city delivers, Delivery changes to Delivered. Opened, the order shows Delivered in the city.
In the game, with Notify = true in loja.lua (the default), the player sees “Your purchase #N has arrived” on screen, with what they got.
The VIP is delivered right away, with the player online or offline, on almost every framework. On vRP / vRPex, it waits for the player to join. On VORP, a job or character group waits if they’re on the server with another character.
If Delivery stays on Failed, open the order and read the reason. If the ID was wrong, fix it in Game ID and click Resend to the city: only what failed goes back to the queue, and no delivery is ever given twice.