Skip to content

10% off shop orders, applied at checkoutBlack Friday: 30% off until Dec 1Server templatesServer templates

RPScripts

FiveM Economy System

FiveM Coin Shop resource preview

FiveM Coin Shop

Frameworks:
  • ESX

Checked by the RPScripts Lab

  • Static check: 1 resource read
What was checked
Check compatibility with your server

Details

Frameworks
ESX
Dependencies
mysql-asynccc_hudvip_ticket_30
File size
74.9 MB
Updated
Licence and support terms
  • Licence: for your own server or project. No resale or sharing.
  • Updates: when a newer file is available, it appears in your account downloads.
  • Support: download access and product-specific setup questions.
Licence and support terms

Description

FiveM Coin Shop is an ESX store that sells vehicles, items and loot cases for a persistent coin balance. Players open a NUI shop with a key, see their coins, and every entry carries a normal price and a VIP price.

Features

  • NUI shop opened with F10 (Config.OpenKey) or the openCoinshop command, registered as a key mapping that players can rebind.
  • Coin balance stored per player in the coinshop_users table, which is created automatically on start.
  • Five vehicle sections in config/config.lua (Basic, Exclusive, Premium, Ultimate, Limited) plus an Other list of items such as backpacks and VIP ticket items; each entry has a price, a vipPrice and an image.
  • Seven loot cases in Config.Cases with a price, rarity chances (COMMON to LEGENDARY) and prize lists of cars, bikes and items.
  • The server event coinshop:purchase checks the price against the stored balance, deducts the coins and either adds the inventory item or spawns the vehicle next to the buyer. Vehicles are not written to a garage table.
  • Coins are added by triggering coinshop:addCoins (player id, amount) from the server side; calls from clients are rejected. No admin command is included.
  • Shop texts are in Config.Translate; the default texts and notifications are in German.

Requirements

  • ESX (es_extended, listed as a dependency in the manifest).
  • mysql-async (@mysql-async/lib/MySQL.lua in the manifest).
  • Notifications are sent with the cc_hud:notify event, so use a HUD that provides it or change those calls in client/client.lua and server/server.lua.
  • Vehicle models are not included. The vehicles in the config use model names that must exist on your server, and the items (for example vipbag3, limitedbag, vip_ticket_30) must exist in your inventory.
  • client/client.lua registers the NUI callbacks buy, close, exit and requestConfig. The UI also calls buyCar, buyOther, testDrive, openCase, getTransactions and activateCode, which are not registered in the download and need your own client and server logic.

Installation

  1. Copy the final_coinshop folder into your resources folder.
  2. The manifest lists config/sv_config.lua, which is not in the ZIP: create an empty file at that path or remove the line from fxmanifest.lua.
  3. Edit config/config.lua to set the key, vehicles, items, cases and prices.
  4. Start it after ESX and mysql-async:
ensure final_coinshop

Server setup

Step-by-step guide: how to install a FiveM script

Checked: the only resource of this download.

FiveM Coin Shop

In your downloads
  • Svdden Premium Banking FiveM resource preview
    • ESX
    • QBCore, Qbox
    Not for your framework

    Svdden Premium Banking

    Svdden Development

    $20.00$14.00
  • T1ger Car Insurance FiveM resource preview
    • ESX
    Not for your framework

    T1ger Car Insurance

    T1GER

    $10.99$7.69
  • EBT / Food Stamp FiveM resource preview
    • ESX
    • QBCore, Qbox
    Not for your framework

    EBT / Food Stamp

    DevM

    $9.99$6.99
  • Pixel Poster Billboard Script FiveM resource preview
    • ESX
    • QBCore, Qbox
    Not for your framework

    Pixel Poster Billboard Script

    Oph3Z

    $19.99$13.99
  • Gas Station Manager
    • ESX
    Not for your framework

    Gas station simulator

    $29.99$20.99
  • CodeM xDailyReward — Daily Reward System [ESX/QBCore] FiveM resource preview
    • ESX
    • QBCore
    Not for your framework

    CodeM xDailyReward — Daily Reward System [ESX/QBCore]

    CodeM

    $10.99$7.69
  • CodeM xPawnshop — Advanced Pawn Shop Script FiveM resource preview
    • ESX
    • QBCore
    Not for your framework

    CodeM xPawnshop — Advanced Pawn Shop Script

    CodeM

    $13.99$9.79
  • ARS VIP Shop FiveM resource preview
    • ESX
    • QBCore, Qbox
    Not for your framework

    ARS VIP Shop

    AmiRobin

    $34.99$24.49