gta6/prompts
phone
Vaultintermediatephone

Email / Inbox Client

ESX/QB threaded email inbox with attachments, job offers, receipts and server-system notifications — a server-authoritative mailbox keyed by identifier with read/unread and a trusted system-sender channel.

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

Description

An email / inbox client for ESX or QB: threaded email with attachments, job offers, receipts and server-system notifications, all carried by a server-authoritative mailbox keyed by identifier. Servers buy it as the formal server-to-player comms channel — the place where jobs, payouts and system messages land — distinct from casual SMS.

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/phone/10-email-inbox-client.lua. It implements a server-owned per-identifier mailbox, a player-to-player send, a trusted sendSystemMail channel for…

🔒 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-forged mail — Claude lets the client write into its own inbox or grant an attachment, so a modder forges a receipt or self-pays; mint every mail and attachment server-side keyed by recipient identifier, with system mail flagged only by a server export.
  • Anim before load — the compose TaskPlayAnim no-ops if the dict is not loaded; always RequestAnimDict + a HasAnimDictLoaded wait loop.
  • One-sided net eventmail:deliver on only one side leaves an online recipient on a stale inbox until relog; both sides use RegisterNetEvent + AddEventHandler.

Corrective re-prompt: "Move the mailbox into server.lua keyed by recipient identifier, expose sendSystemMail as a server-only function with a fixed from, and in mail:claimAttachment check the attachment is unclaimed before granting it once and clearing it — never trust a mail or attachment the client sends."

Framework Integration

  • ESX: local ESX = exports['es_extended']:getSharedObject(); grant a money attachment via xPlayer.addMoney(amount) or an item via xPlayer.addInventoryItem.
  • QBCore: local QBCore = exports['qb-core']:GetCoreObject(); use Player.Functions.AddMoney('bank', amount) and Player.Functions.AddItem.
  • QBox: exports.qbx_core:GetPlayer(src) with exports.ox_inventory:AddItem for item attachments.

Profit Potential

$150–$2000/mo on Tebex (expected ~$500). [INFERRED] within the $50-389 script band against the signal-scraper tebex_snapshot corpus (n=100, median seller $11.85K/mo), sized for a stable server-comms niche.

Trend Signal

stable — inferred: Server-comms channel for jobs/receipts; steady but secondary to SMS.

Sales Angle

Position as the server-to-player comms backbone — the inbox that carries job offers, receipts and system mail no SMS app can. Recommended Tebex price $89.

Difficulty & Ship Time

intermediate · ships in 1-2 days.