LHDF Shop

by Boomstick Barry
LHDF Shop

Summary

# LHDF Shop

Traders, player accounts and cash for Arma Reforger.

Description

# LHDF Shop

Traders, player accounts and cash for Arma Reforger. Part of the Lost Hope Dynamic Framework (LHDF), built for the Lost Hope Survival server.

Every player has an account with a saved balance. Traders sell and buy back items, vehicles and helicopters in a shop window, and the server checks every trade. Each item has a category, a tier and a price; a trader sells the items whose category it offers and whose tier it sells. Server owners change prices, items and shop types in one JSON file.

## Features

- Player accounts: starting balance, saved balance and the last 100 trades.
- Cash items of $100, $500 and $1000. Cash is lost on death and can be looted; the account balance is safe.
- Banking: deposit carried cash, withdraw cash from $100 to $50,000.
- Shop window with Buy, Sell, Bank and "My vehicles" views: categories, search, 3D previews, item stats, quantity. Mouse and controller.
- 529 vanilla items in 33 categories (weapons and accessories, gear, vehicles).
- Three tiers: basic (general store), standard (specialist shops), restricted (black market).
- 8 shop types: General store, Gun store, Outfitter, Vehicle dealer, Helicopter dealer, Medic, Black market, Bank. Each has a price markup.
- Ready traders for the Game Master: Shopkeeper, Cashier, Black market trader, Medic. Shopkeepers wear a random outfit, take no damage and stand still.
- Vehicle and helicopter delivery to a spot next to the trader. A blocked spot refuses the purchase without charging.
- Vehicle buy-back, priced by health.
- Map marker with the shop's name.
- Game Master attributes: shop type, categories, tiers, banking and map marker on traders; adjust money on players; shape and served trader on vehicle spots. Changes are saved.
- Sell rules: containers pay for their content, magazines for the rounds left, spawn loadout items sell for 0.
- Patch mods add items of other mods (RHS, WCS, Nasty, Misc, Smurfs Base Building).
- Other LHDF mods pay players through the Shop (for example Encounters rewards).

## Required on server and clients

Yes. The shop window runs on the client, traders and balances are replicated, and every client builds the item data from the same item lists and settings as the server.

## Dependencies

- Arma Reforger
- LHDF Core

Optional: LHDF Vehicle Lock. With it, bought vehicles belong to the buyer and can be sold back. Without it, vehicles are delivered unowned.

## Configuration

Settings live in `$profile:LHDF/<namespace>/Shop.json`. On every start the server writes every key with its default to `_defaults/Shop.json`, plus `_defaults/Shop.md` (shop types and categories with item counts) and `_defaults/Shop.Items.csv` (every item with GUID, category, tier and price).

Most important keys:

- `startingBalance` (10000): balance on first join.
- `maxBalance` (1000000000): credits stop at this balance.
- `interactionDistance` (5): distance to the trader for trading, in metres.
- `dropPurchasesWhenFull` (false): drop what does not fit instead of not selling it.
- `vehicleSellRatio` (0.5): buy-back share of a vehicle's price, scaled by health.
- `vehicleSellRange` (50): distance of a vehicle to the trader or its spot to be sold.
- `sellClaimedVehicles` (false): buy back claimed vehicles too.
- `blockLoadoutSelling` (true): spawn loadout items sell for 0.
- `shops`: change a shop type (name, categories, tiers, banking, markup, enabled) or add one.
- `categories`: change a category's defaults (price, sellRatio, maxQuantity, vehicle) or add one.
- `items`: change an item by prefab GUID (price, tier, category, sellPrice, maxQuantity), disable it, or add an item with category and price.

Example: `{ "shops": { "general": { "markup": 1.2 } }, "items": { "3E413771E1834D2F": { "price": 1800 } } }`

`Shop/Grants.json` in the same folder credits money to a player once (by identity id). The server never writes this file.

## Known limitations

- Selling vehicles back needs a vehicle ownership provider (LHDF Vehicle Lock). Without it, bought vehicles are unowned and cannot be sold back.
- Vehicles need a free vehicle or helicopter spot linked to the trader or within 150 m of it.
- A Game Master category attribute shows at most 24 categories. A group with more categories is split into several attributes.

Beta (0.9.0): feedback welcome on the Lost Hope Survival Discord: https://discord.gg/uDzYTTdsM6

License

CUSTOM LICENSE – RESTRICTED SERVER USE
Version 1.0 – 2026-10-01

1. OWNERSHIP
This mod, including all code, assets, configurations and documentation
(the "Content"), is created and owned by BoomstickBarry / the LHDF Team (the "Author").
All rights not expressly granted in this license are reserved.

2. PERMITTED USE
Without further permission, you may:
a) download the Content through the Arma Reforger Workshop;
b) use it in single-player, offline or local Workbench sessions for
   personal, non-commercial purposes;
c) host it on the following authorized servers only:
   [Lost Hope Survival - Nizla Island].

3. SERVER RESTRICTION
You may not load, host, run or otherwise deploy the Content, in whole or
in part, on any multiplayer server other than those listed in Section 2(c)
without prior written permission from the Author. This applies to public,
private, password-protected, unlisted, test and event servers, and to
server-side-only use.

4. REQUESTING PERMISSION
Requests must be sent through the Lost Hope Survival Discord:
https://discord.gg/uDzYTTdsM6. Permission is valid only if
given in writing by the Author, applies only to the servers named in it,
and cannot be transferred or sublicensed.

5. NO REDISTRIBUTION
You may not reupload, mirror, repack, merge into another mod, or otherwise
redistribute the Content on any platform.

6. NO DERIVATIVES
You may not modify, adapt, decompile, extract assets or code from, or
create works based on the Content without written permission. Creating a
separate mod that lists the Content as a dependency is allowed only for
use on authorized servers.

7. NO COMMERCIAL USE
You may not sell the Content or use it in any context involving direct or
indirect financial gain, including servers with paid access, paid perks
or donation-based advantages.

7a. NO USE OUTSIDE BOHEMIA INTERACTIVE PRODUCTS
The Content may only be used within Arma Reforger and other Bohemia
Interactive products. It may not be transferred to, used in, or adapted
for any other game, engine or platform.

8. TECHNICAL MEASURES
The Content may include checks that limit its functionality to authorized
servers. Circumventing, disabling or removing these checks is prohibited.

9. TERMINATION AND REVOCATION
Any breach of this license automatically ends your rights under it. The
Author may revoke any granted permission at any time. After termination
or revocation, you must stop using the Content on any server immediately.

10. NO WARRANTY
The Content is provided "as is", without warranty of any kind. The Author
is not liable for any damage, data loss or server issues arising from its
use.

11. THIRD-PARTY CONTENT
Any third-party material included in the Content remains subject to its
own license, and nothing here overrides those terms.

12. CHANGES
The Author may update this license. The version shown on the Workshop
page is the one that applies.

13. SEVERABILITY
If any part of this license is found unenforceable, the rest remains in
effect.

Version
1.0.0
Game Version
1.8.0.13
Version size
1.62 MB
Created
01.10.2026
Last Modified
01.10.2026
ID
F92519634293965B

Dependencies