gta6/prompts
crafting
Vaultadvancedcrafting

Spatial Grid Inventory (Footprints + Rotation)

ESX/QBCore spatial inventory where items occupy WxH grid cells and rotate to fit, with all placement validity checked server-side.

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

Description

A spatial-grid inventory for ESX/QBCore where items have a WxH cell footprint and can be rotated 90° to pack tightly into pockets, rigs and stashes. The server validates every placement against the existing layout, so the satisfying Tarkov-style packing puzzle stays cheat-proof.

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 at content/expected-outputs/crafting/02-spatial-grid-footprint-inventory.lua implements a footprint rotation swap, an AABB fits bounds+overlap test, and a server grid:place handler…

🔒 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-only collision — if the overlap test lives in NUI, a cheat client overlaps items. Force fits into the server section.
  • Rotation not applied — forgetting to swap w/h on rotation makes rotated items collide or escape the grid.
  • Edge overflow — a >= vs > slip lets an item hang one cell past the border. Demand exact x+w > GRID_W bounds.

Corrective re-prompt: "Run the fits() bounds-and-overlap check server-side only, swap width/height inside footprint() when rotated is true, and reject placement when x+w exceeds GRID_W or y+h exceeds GRID_H so nothing escapes the grid."

Framework Integration

  • ESX: exports['es_extended']:getSharedObject(); key grids by xPlayer.identifier.
  • QBCore: exports['qb-core']:GetCoreObject(), QBCore.Functions.GetPlayer(source), key by citizenid.
  • QBox: exports.qbx_core:GetPlayer(source); map footprints onto ox_inventory's slot model if bridging.

Profit Potential

$400–$6000/mo on Tebex (expected ~$1500). [INFERRED] priced inside the $50-389 standalone-script band against the signal-scraper corpus (tebex_snapshot n=100, median seller $11.85K/mo) for a hot extraction-server niche.

Trend Signal

🔥 hot — strategy: niche-selection.md defensibility axis — a premium spatial (footprint) inventory is a defensible upsell over free slot grids in the hot hardcore/extraction-server wave.

Sales Angle

The standout, defensible upsell for hardcore/extraction servers chasing the Tarkov packing fantasy that free slot grids cannot deliver. Recommended Tebex price: $179.

Difficulty & Ship Time

advanced · ships in 1 day.