Description
A pharmacy dispensing counter for ESX or QB servers: a doctor issues a server-owned prescription (patient + medication + dose), and a pharmacist later fills it into a dispensed medication item for a fee that flows into the pharmacy society. Servers sell it because it links the medical job to the economy — prescriptions become a money sink and a real pharmacist role instead of free /heal.
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 lives at content/expected-outputs/medical/20-pharmacy-prescription-dispense.lua. It implements a server-owned prescription ledger, a doctor issue path that returns an id, and an…
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 validity — Claude lets the client claim a prescription is valid; keep the record + filled flag server-side keyed by id.
- Anim before load —
TaskPlayAnimno-ops if the dict is not loaded; alwaysRequestAnimDict+ aHasAnimDictLoadedwait loop before the counter gesture. - Double fill / wrong account — set
filled = truebefore charging so a replayedpharma:fillis ignored and the fee is charged exactly once.
Corrective re-prompt: "Keep PRESCRIPTIONS keyed by id on the server with a filled flag; in pharma:fill reject a missing or already-filled id, set filled = true before charging, then take the fee from the patient, add it to the pharmacy society, and grant the med item."
Framework Integration
- ESX:
local ESX = exports['es_extended']:getSharedObject(); charge withxPlayer.removeMoney(fee)and creditTriggerEvent('esx_addonaccount:getSharedAccount','society_pharmacy', ...). - QBCore:
exports['qb-core']:GetCoreObject(); usePlayer.Functions.RemoveMoney('cash', fee)andexports['qb-management']:AddMoney. - QBox:
exports.qbx_core:GetPlayer(src)for the patient andexports.ox_inventory:AddItemto dispense the medication.
Profit Potential
$250–$3000/mo on Tebex (expected ~$800). [INFERRED] within the $50-389 script band against the signal-scraper tebex_snapshot corpus (n=100, median seller $11.85K/mo), set for a rising, under-built medical-economy niche.
Trend Signal
↗ rising — strategy: Pharmacy dispensing is a business-layer tie-in (economy synergy); matrix-favored and under-built as a standalone.
Sales Angle
Position as the medical-economy tie-in: prescriptions become a money sink and a real pharmacist job instead of free heals. Recommended Tebex price $129.
Difficulty & Ship Time
beginner · ships in 1 day.