[PAID][QBCORE] Storage Lockers

Showcase
STORAGE LOCKERS

Tebex
SHANKS | STORAGE LOCKERS

Summary

  • With this script admins are able to list storage lockers for players to buy. When purchased, players are able to set a password which they can then share with friends, business partners and gang members. They can use this for shared storage, or just hiding their items from cops.

Features

  • Staff can list unlimited amounts of storage lockers around the map
  • Staff can set the price and storage amount on each locker
  • Players can set their own password upon purchase and change their password
  • Players can share this password with their friends
  • Blips for the locker location
  • Players can sell their locker for 90% of the original price
  • Police can raid the locker
  • Database free as its all done using a JSON file
  • Optimised at 0-0.1ms Idle and 0.4-0.5 on use

Dependencies

2 Likes

Looks like a remake of the qb-traphouseā€¦?

Just because it used the password UI, does not mean its a re-makeā€¦

Nice script

Does this use oxsql ? or does it support the older getmattysql?

It doesnā€™t use the database, uses json

1 Like

All it uses is the pin system which is seen in qb-storerobbery & qb-traphouse

1 Like

Update for lockers

Make sure to check the video

Update:
Blips Added
Change Passcode
Sell Locker
Raid Locker
Use NH-Context

SHOWCASE

2 Likes

I found this in the QBCore discord and I think this is pretty good that you could add to it:

Purchase Log
Add this to the server side ā€œshanks-storagelockers:server:purchaselockerā€ event

TriggerEvent(ā€˜qb-log:server:CreateLogā€™, ā€˜storagelockerā€™, ā€˜Storage Locker Purchasedā€™, ā€˜greenā€™, ā€˜Locker Name:\nā€™ā€¦nameā€¦ā€™\n\nPurchase Price:\n$ā€™ā€¦priceā€¦ā€™\n\nBuyer:\nā€™ā€¦GetPlayerName(src))strong text

Sell Log
Add this to the server side ā€œshanks-storagelockers:server:sellLockerā€ event

TriggerEvent(ā€˜qb-log:server:CreateLogā€™, ā€˜storagelockerā€™, ā€˜Storage Locker Soldā€™, ā€˜redā€™, ā€˜Locker Name:\nā€™ā€¦nameā€¦ā€™\n\nSale Price:\n$ā€™ā€¦salepriceā€¦ā€™\n\nSeller:\nā€™ā€¦GetPlayerName(src))

Create Locker Log
Add this to the server side ā€œlockerā€ command

TriggerEvent(ā€˜qb-log:server:CreateLogā€™, ā€˜storagelockerā€™, ā€˜Storage Locker Createdā€™, ā€˜greenā€™, ā€˜Locker Name:\nā€™ā€¦nameā€¦ā€™\n\nCapacity:\nā€™ā€¦capacityā€¦ā€˜KG\n\nSlots:\nā€™ā€¦slotsā€¦ā€™\n\nListing Price:\n$ā€™ā€¦priceā€¦ā€™\n\nListing Agent:\nā€™ā€¦GetPlayerName(src))

QB-Logs Config
Add this in qb-logs/config.lua

[ā€œstoragelockerā€] = ā€œwebhookhereā€,

1 Like

so iv been thinking of getting this but the only thing is has it been update for the new core qb and is it now using the qb-menu than nh ?

1 Like

looks for same lol

Great post

1 Like

I keep getting this when the locker script tries to start:
[ c-scripting-core] Creating script environments for shanks-storagelockers
[ c-scripting-core] Failed to load script @qb-core/import.lua.
[script:shanks-storag] Error loading script server/main.lua in resource shanks-storagelockers: @shanks-storagelockers/server/main.lua:3: attempt to index a nil value (global ā€˜QBCoreā€™)
[script:shanks-storag] stack traceback:
[script:shanks-storag] @shanks-storagelockers/server/main.lua:3: in main chunk
[ c-scripting-core] Failed to load script server/main.lua.

Also the discord link in the readme is no longer valid

We get the same error

Did u find a fix for the problem or did u give up?

Yes add this to client and server main.lua:
in client add at top on server add under config
local QBCore = exports[ā€˜qb-coreā€™]:GetCoreObject()
and remove:
shared_script ā€˜@qb-core/import.luaā€™
from fxmanifest.lua
remove line 1 from server/main.lua

remover lines 1 and 6-13 from client/main.lua

Has this been updated ?

I do not recommend this script. Very small readME, file did not even come with a Config.lua, and there are errors in the console. When you go to the ReadMe to get Discord support, the link is invalid. Poor quality, sad that I bought this and wasted money

works fine for me after a small edit, need some basic framework knowledge and it worked fine!