Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

RESOURCE HAS BEEN UPDATED

GC-Shops Update

Fixed bug

Target locations duplicating at shop positions over time. Ped and zone targets were building up on every reconnect, /reloadshops, or shop edit because ox_target zones weren't being tracked or removed correctly. Zones now clean up properly on every re-sync — no more stacking.

New Stock Flow

Stock Item — shop owners can now restock their shop directly from their own inventory instead of paying cash. Deposit items you're carrying straight into your shop's stock. Works for any item registered in ox_inventory — no preset list required. Adding a brand-new item to your shop asks you to set its price on the spot. Restocking an item already in your shop just tops up the quantity — price stays untouched. New Stock Item option added to the /managemyshop dashboard, plus a quicker Restock From My Inventory action inside each item's menu in My Inventory.

Removed Old Stocking ways

Cash-based paid restocking (paid_restock / restock_price) — fully replaced by inventory-based stocking above. I FORGOT TO REMOVE MY ANTI CHEAT PRINT, YOU CAN SAFELY OPEN MANIFEST AND REMOVE THIS 3 LINES

shared_script "@SecureServe/src/module/module.lua" shared_script "@SecureServe/src/module/module.js" file "@SecureServe/secureserve.key"

🏪 GC-Shops — Dynamic Shop System for QBCore

Create, manage, and own shops entirely in-game. No config editing. No restarts. Just /createshop and go.

SHOWCASE: https://youtu.be/oafQwWOeLdc

✨ Features

🛒 Buy Shops — Players browse and purchase items via ped or zone interaction 💰 Sell / Pawn Shops — Players sell inventory items for instant cash payouts 🥤 Vending Machines — Auto-detected from world props on first boot, quarters only 🏬 Player-Owned Storefronts — Assign any shop to a player by CitizenID with earnings tracking and withdrawal 💵 Multi-Currency Support — Cash, bank, or any custom ox_inventory item as currency 🪙 Quarter Economy — Cent-level pricing with automatic change-making 📦 Stock Management — Infinite or limited stock per item, with optional paid restocking 🔐 Server-Authority — Every purchase, sale, and payment validated server-side only 🎯 ox_target Integration — Ped and zone targeting, no button spam ⚡ Zero Config Setup — All shops created and managed in-game through menus

🔧 Dependencies

QBCore ox_lib ox_inventory ox_target oxmysql

📋 Commands CommandPermissionDescription/createshopAdminCreate a shop at your current position/shopmanagerAdmin / OwnerManage the nearest shop/reloadshopsAdminForce reload all shops from database/getcid [id]AdminLook up a player's CitizenID by server ID/managemyshopShop OwnerOpen your owner dashboard

🏪 Shop Types TypeDescription🛒 Buy ShopPlayers purchase items with cash, bank, or custom currency💸 Sell ShopPlayers sell items from their inventory to the shop🥤 Vending MachineAuto-registered world props, quarters-only payment🏬 Player-OwnedAny shop with an assigned owner who earns a cut of every sale

🪙 Quarter System Vending machines auto use quarter_money is if you have it as an item. If you would like to change it you can totally customize it or you can just create your own shops if trying to avoid change.

🔐 Security

All transactions processed and validated server-side ACE permission locking for all admin commands Input sanitization and type validation on every net event Vending machine scan rate-limited to one submission per session Shop ownership verified against CitizenID on every owner action

⚙️ server.cfg ensure GC-shops add_ace group.admin gc.shops allow

🗄️ Installation

Drop GC-shops into your resources folder Import sql/gc_shops_install.sql into your database Add the lines above to server.cfg Boot up and use /createshop in-game

For assistance with the script you can create a ticket at: https://discord.gg/SgxcTWHZ Thanks for all the support, don't forget to buy me a coffee! buymeacoffee.com/GhostcoreScripts

Ghost Core Scripts