Skip to content

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

RPScripts

K5 Shops for FiveM

By RPScripts

Illustration of a convenience store with stocked shelves, a cash register, banknotes and a bank card
On this page

K5 Shops by kac5a (K5 Scripts) is a free, open ESX script for shops that accept multiple currencies: cash, bank or black money. A shop can work as a pawn shop, a store or a buyer-only market, with its own NUI page for buying and selling. The creator tested it on ESX Legacy only, and the last commit in the repository is from 22 September 2022.

Requirements

  • Framework: ESX (tested with ESX Legacy)
  • es_extended
  • esx_addonaccount
  • No SQL: stock is stored in one JSON file per shop under data/

Installation

  1. Clone or download the repository into your server's resources directory, for example with git clone https://github.com/kac5a/k5_shops.git [scripts]/k5_shops.
  2. Keep the data/ folder; the script writes the shop stock there.
  3. Add ensure k5_shops to server.cfg after es_extended and esx_addonaccount.
  4. Edit config.lua, then restart the server.

Configuration

config.lua ships three example shops: a pawn shop, a BurgerShot and a drug dealer. Each entry under Config.Shops takes:

  • shopName, coords and an optional blip with color, sprite and scale
  • cashierPed: ped model, coordinates and heading, or nil for no cashier
  • paymentType: 1 cash, 2 bank, 3 black money
  • sellJob: the jobs that may use the sell tab; money from that tab goes to the society
  • sellOnly: removes the buy tab
  • infinite: ignores stock limits
  • items: label, buyPrice, sellPrice and maxCount per item; a nil price hides the item on that page

Config.Locale picks the language from locale.lua.

Before going live

Every item key in the config must be registered in your inventory system, otherwise the script will not work properly, as the config itself warns. Shop logos and item pictures are PNG files in html/img, named after the shop key and the item key. You can edit the stock JSON files while the server runs, but only when no player has that shop open. The fxmanifest.lua still carries the description BikeRental, which does not affect the script.

K5 Shops are run by the server and have no owners. If you want stores that players buy, staff and restock themselves, T1ger Shops turns ESX shops into player-owned businesses.

Download

K5 Shops by kac5a (K5 Scripts) is free. Download it from the creator's original GitHub repository: https://github.com/kac5a/k5_shops

Preview video: https://www.youtube.com/watch?v=9vnCYj48c_c

  • Sandy Cokelab MLO for FiveM: Setup Notes

    Sandy Cokelab MLO for FiveM: Setup Notes

    Sandy Cokelab is MrBrown1999’s MLO interior published in 2019. The original listing gives separate single-player and FiveM instructions. For FiveM it specifies the server resources folder and start cokelab in server.cfg; the dlclist.xml steps belong to single-player installation.