gta6/prompts
medical
Vaultbeginnermedical

Medical Billing — Treatment Invoices & Insurance Claims

ESX/QB itemized treatment invoicing that prices line-items server-side and bills the total to either the patient's bank account or a shared insurance society account at discharge.

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
~78 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25

Description

An itemized medical billing system for ESX or QB: medics add treatment line-items to an invoice, and at discharge the server prices the cart from a fixed table and charges the total to either the patient's bank account or a shared insurance society account. Servers buy it because it wires the medical job into the economy — treatment becomes revenue, and insurance opens a whole billing-roleplay layer.

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/27-medical-billing-insurance.lua. It implements a server-side price table, a validated total computation that ignores unknown codes, a…

🔒 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-sent total — Claude trusts a total from the client; compute it server-side from validated line-item codes only.
  • No balance check — moving money without verifying funds creates negative accounts; gate removeAccountMoney behind a balance check.
  • One-sided net eventbill:result on only one side means the discharge confirmation never arrives; both sides use RegisterNetEvent + AddEventHandler.

Corrective re-prompt: "Never accept a total from the client — keep the PRICES table in server.lua, recompute the invoice from the validated line-item codes, and before charging the patient verify getAccount('bank').money is at least the total; route insurance payments through the shared society account instead."

Framework Integration

  • ESX: local ESX = exports['es_extended']:getSharedObject(); insurance via esx_addonaccount:getSharedAccount('insurance_society', cb).
  • QBCore: local QBCore = exports['qb-core']:GetCoreObject(); charge with Player.Functions.RemoveMoney('bank', total) and a society account through qb-management / qb-banking.
  • QBox: use exports.qbx_core:GetPlayer(src) and exports.qbx_management for the society/insurance account.

Profit Potential

$250–$3500/mo on Tebex (expected ~$900). [INFERRED] within the $50-389 script band against the signal-scraper tebex_snapshot corpus (n=100, median seller $11.85K/mo), sized for a rising economy-bridge niche.

Trend Signal

rising — strategy: Billing/insurance wires medical into the economy category (cross-sell synergy per matrix); under-built standalone.

Sales Angle

Position as the economy bridge for any medical pack — it turns treatment into revenue and unlocks insurance roleplay, an easy cross-sell beside an EMS job. Recommended Tebex price $129.

Difficulty & Ship Time

beginner · ships in 2-4h.