Create Unlimited Player Owned Shops [QB/ESX] - Cubic Shops

Cubic Shops

is an advanced player-owned shops with robberies. It allows players to sell their items in shops to get money. This supports all types of shops, such as ammunition, 24/7, liquor stores, and more!
Players can rob other stores to steal the owner’s money.

Links


Features


Robbery System: This resource includes a robbery system within the player owned shops
Configuration: Everything is changeable! You can customize each shop individually
Locales: Translate-able to all languages
Compatibility: Compatible with all frameworks and all dispatch exports are changeable
Store-Based Robbery Cooldown: Server-sided cooldown system that applies to all players, based on each shop
Optimization: This resource runs from 0ms to 1ms on idle and in a shop zone.

Dependencies


oxmysql, ox_lib, peuren-minigames

Information


  • [Lines]: 1000+
  • [Resmon]: 0ms to 1 ms on idle and in a shop zone
  • [NOTE]: This resource does not depend on any framework as long as you have the dependencies installed!
[Code is accessible]: Escrow & Editable Versions
[Subscription-based]: No
[Lines]: 1000+
[Requirements]: Above
[Support]: Yes
1 Like

Update:

  • [Auto Zones]: Locations that you add in the config.lua file will now be automatically registered as a zone (instead of manually adding it)
  • [Optimization]: More optimization

documentation is now updated

Cubic Shops | Update v2.0.2

Changelog:

  • Bug Fixes

    • Fixed a bug when updating shops
    • Fixed locales
    • And more…
  • More Config Options

    • You can now disable or edit the looting minigame
    • Minimum/Maximum amount of money a player can receive when robbing
    • You can now enable/disable the shop supplier
    • You can now enable/disable players selling shops
    • Ox lib context menu creation is now open source [client/cl_edit.lua]
  • Optimization

    • Now using Ox lib’s zones instead of PolyZone

Cubic Shops | Update v2.0.3

Changelog:

  • Bug Fixes

    • Fixed locales
    • And more… (I forgot)
  • More Config Options

    • You can now configure each shop individually, allowing for more shop types such as ammunition and liquor stores.
    • Un-owned shops will now have default items in stock until a player purchases the shop.

Cubic Shops | Update v2.0.4

Changelog:

  • Bug Fixes

    • Added missing locales for en
    • Added missing SQL Row
  • More Config Options

    • You can now choose between a GTA: Online style robbery, use a looting minigame or give the player money automatically
  • Security

    • Added server-side checks for animations
    • Added server-side checks for ped freezing

Cubic Shops | Update v2.0.5

Changelog:

  • Bug Fixes

    • Fix a small bug on server side
    • Fixed the heading and velocity of the bag in the GTA:O Robbery
  • Config Changes

    • Now using ox_inventory metadata to check if an item requires a weapon license
    • Shop management can now be turned off [allowing for unplayer-owned shops]
    • Added blips [configurable for each shop, sprite, color, text, scale, short range]
    • Removed unused config options [old supplier]
  • New Features

    • Now automatically inserts the SQL code for you [creates table and inserts shops]
  • Script Changes

    • qb-target isn’t supported by the GTA:O Robbery, an editable function was created
    • In future updates, qb-target won’t be supported. It’s up to you to add its support [client/cl_target.lua]
    • Re-wrote en locales for a more professional look locales/en.json

The script preview will be updated soon!

Would you be able to add an NPC order feature that can be enabled / disabled at each shop? So that NPCs can spawn and walk into order items from the players shop? I think its a good feature to have for smaller servers where stores maybe dont get alot of players buying items.

Will be included in the next update, thanks for the suggestion!

1 Like

Cubic Shops | Update v2.0.6

:scroll: Changelog:

  • Bug Fixes

    • Fixed server-side supplier issue
    • Fixed client-side blip short/long range issue
  • Config Changes

    • Ability to disable blips [blip.enabled]
    • Ability to make certain shops job locked [qb]
    • Blips can now be visible only to a certain job [blip.jobOnly]

The documentation was just updated.