gta6/prompts
vehicles
Vaultintermediatevehicles

Vehicle Rental Kiosk

An ESX/QBCore/QBox kiosk that rents a vehicle against a cash deposit for a timed period, auto-despawning and refunding on return or forfeiting on expiry.

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

Description

A rental kiosk for ESX/QBCore/QBox servers: walk up, press E to put down a cash deposit and spawn a rental car for a fixed window, then press G to return it and reclaim the deposit. If the timer expires first the car despawns and the deposit is forfeited. Servers sell it because it gives new and broke players legitimate wheels without breaking the economy.

Prompt Template

You are writing a FiveM resource for ESX. ONE Lua file, client + server sections,…

🔒 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 at content/expected-outputs/vehicles/24-vehicle-rental-kiosk.lua implements a deposit-gated rental: a proximity rent/return loop, a server-side deposit charge with a SetTimeout…

🔒 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-side timer — a disconnect or restart kills it and the rental never despawns; run the expiry on the server.
  • Client-side deposit — refunding on the client lets players keep both the car and the cash; keep deposit math server-side.
  • Unmanaged entity — without SetEntityAsMissionEntity the car is culled and cannot be deleted; flag it on spawn.

Corrective re-prompt: "Move the rental timer into a server-side SetTimeout keyed by source, perform every removeMoney/addMoney on the server, and on spawn call SetEntityAsMissionEntity(veh, true, true) so the later DeleteEntity always resolves."

Framework Integration

ESX: xPlayer.getMoney() / removeMoney / addMoney drive the deposit and refund. QBCore: use Player.Functions.GetMoney('cash'), RemoveMoney('cash', DEPOSIT), AddMoney('cash', DEPOSIT). QBox: same as QBCore through exports.qbx_core:GetPlayer(source) and the player money functions.

Profit Potential

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

Trend Signal

stable — strategy: Niche-matrix onboarding/economy; timed deposit rentals serve new/poor players — a standard economy tool with steady demand.

Sales Angle

Position as the budget-onboarding utility that keeps new players mobile without minting free cars. Recommended Tebex price: $89.

Difficulty & Ship Time

intermediate · ships in 2-4h.