gta6/prompts
medical
Vaultbeginnermedical

Pharmacy — Prescription Dispensing Counter

ESX/QB pharmacy counter where a doctor issues a server-owned prescription record and a pharmacist later fills it into a dispensed medication item for a fee, with the fee paid into the pharmacy society.

NON-TESTÉ — the reference Lua is syntax-validated, not run in a live FiveM server. Adapt and test on your own dev server before shipping.
Est. Lua
~98 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25

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).

🔒 Eyes-only — locked prompt body

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.

Core$49one-time
  • 60 prompts + syntax-validated reference Lua
  • Lifetime access — pay once
Most Popular · Best Value
Vault$199one-time
  • All 510 prompts — the full library
  • Per-prompt profit/trend intelligence (CSV + playbook)
  • Lifetime free updates — new niches as the market moves
Get the Vault — $199

$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…

🔒 Eyes-only — locked prompt body

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.

Core$49one-time
  • 60 prompts + syntax-validated reference Lua
  • Lifetime access — pay once
Most Popular · Best Value
Vault$199one-time
  • All 510 prompts — the full library
  • Per-prompt profit/trend intelligence (CSV + playbook)
  • Lifetime free updates — new niches as the market moves
Get the Vault — $199

$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 loadTaskPlayAnim no-ops if the dict is not loaded; always RequestAnimDict + a HasAnimDictLoaded wait loop before the counter gesture.
  • Double fill / wrong account — set filled = true before charging so a replayed pharma:fill is 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 with xPlayer.removeMoney(fee) and credit TriggerEvent('esx_addonaccount:getSharedAccount','society_pharmacy', ...).
  • QBCore: exports['qb-core']:GetCoreObject(); use Player.Functions.RemoveMoney('cash', fee) and exports['qb-management']:AddMoney.
  • QBox: exports.qbx_core:GetPlayer(src) for the patient and exports.ox_inventory:AddItem to 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.