Usage
Last updated
Last updated
Visiting a Shop
The script spawns a marker and/or blip at each location in Config.Shops
.
When a player approaches (within distance
meters), they see a prompt (the ShopText
) telling them to press E (or a key) to open the shop UI.
Purchasing Items
Players can select items from categories like food, water, tools, etc.
Once they have everything in their cart, they choose cash or card as payment.
If they have enough money (in ESX or QBCore), the items are added to their inventory.
Discord Integration
On server start, prices are randomly assigned if items have a {min, max}
price range.
The script sends a Discord embed to your Config.Discord.Webhook
with updated prices, plus any server name or message you’ve defined.
Dynamic Price Ranges
Items like { name="bread", price={min=10, max=15} }
get a random final price (e.g., $12) each time the server starts.
Items with a single price
number remain fixed.
Notifications
If on ESX, the script calls ESX.ShowNotification
.
If on QBCore, it uses QBCore.Functions.Notify
.
Fallback: Print messages to console if framework detection fails.