Description
A passive-business script for roleplay servers: a player buys a vending machine, places it anywhere in the world, restocks it, and walks away while it quietly earns. The owner returns later to collect the accumulated vault — the empire-builder loop that keeps idle players logged in and spending.
Prompt Template
You are writing a FiveM resource for esextended (stable, exports getSharedObject).
The full prompt template and its reference Lua are part of a one-time pack. Pick your depth — both are lifetime access, no subscription, ever.
- 60 prompts + syntax-validated reference Lua
- Lifetime access — pay once
- All 510 prompts — the full library
- Per-prompt profit/trend intelligence (CSV + playbook)
- Lifetime free updates — new niches as the market moves
$49 for 60 · $199 for all 510 + intelligence — one-time, no subscription.
Expected Output
The reference Lua at content/expected-outputs/business/13-vending-machine-empire.lua implements buy → placement marker → restock anim → server-owned 60s accrual loop → collect, with the vault and all…
The full prompt template and its reference Lua are part of a one-time pack. Pick your depth — both are lifetime access, no subscription, ever.
- 60 prompts + syntax-validated reference Lua
- Lifetime access — pay once
- All 510 prompts — the full library
- Per-prompt profit/trend intelligence (CSV + playbook)
- Lifetime free updates — new niches as the market moves
$49 for 60 · $199 for all 510 + intelligence — one-time, no subscription.
Known Failure Modes & Corrective Prompt
- Client-trusted vault — Claude may grow/pay the vault on the client; it has no authority there. The accrual loop and
addMoneymust live in the server section only. - Anim skip —
TaskPlayAnimwithoutRequestAnimDict+ the wait-for-load loop T-poses on a cold cache. - Unregistered placement event —
vending:confirmPlacewithoutRegisterNetEventon the server drops the round-trip and never stores the machine.
Corrective re-prompt: Move the entire accrual loop and every addMoney/removeMoney into the server section; never let the client compute or send the vault total. Add RequestAnimDict("mini@repair") with while not HasAnimDictLoaded("mini@repair") do Wait(0) end before TaskPlayAnim, and confirm every server-side handler is wrapped in RegisterNetEvent.
Framework Integration
ESX: exports['es_extended']:getSharedObject(), xPlayer.getMoney()/addMoney/removeMoney, xPlayer.identifier for ownership.
QBCore: swap to exports['qb-core']:GetCoreObject(), Player.PlayerData.money.cash, Player.Functions.AddMoney/RemoveMoney, Player.PlayerData.citizenid as the owner key.
QBox: use exports.qbx_core:GetPlayer(src) and the qbx_core money exports; identical ownership/vault logic.
Profit Potential
$250–$3500/mo on Tebex (expected ~$900). [INFERRED] priced inside the $50-389 standalone-script band against the signal-scraper corpus (tebex_snapshot n=100, median seller $11.85K/mo) for a rising passive-business niche.
Trend Signal
↗ rising — inferred: Passive placeable-revenue businesses inferred rising from idle/empire-builder RP demand.
Sales Angle
Position as the idle/empire passive-income layer no economy server ships by default — players keep logging in to restock and collect. Recommended Tebex price: $89.
Difficulty & Ship Time
intermediate · ships in 1 day.