Code Monkey home page Code Monkey logo

renzu_shops's Introduction

renzu_shops

Fivem Advanced Shops with stocks and player owned shops using ox_inventory , ox_lib. image

Features

  • Support All types of Shops
  • Categorized Shop
  • Player Owned Shops
  • Shop Management - Stock management, employee management, finance management, item data mangement, item orders manage.
  • Shop Owner can Order Bulk items from Suppliers with preconfigured discounts.
  • Shop Owner can Deposit or Withdraw items from Store Inventory.
  • Support Multiple Currency. money , black_money or your custom item.
  • Support Preconfigured Item Metadas type. ( eg. sell burger, Cheese Burger, Double Bart Burger with one item 'burger')
  • Support Item Customisation using Metadatas. ( Semi Advanced Usage ) ( example: Donut can have toppings. Burger can have cheese, lettuce addons) each addons can have effects. as for weapon customisation its defaults is Attachements.
  • Movable Shops - preconfigured. 'Chihuahua Hot Dogs', 'Beefy Bills Burger Bar', 'Attack A Taco' (van)
  • Ondemand Shop Selling - Sell Items to Random Locals Orders. (soon player based ondemand as this is currently WIP)
  • Shipping Jobs - Store Owner Bulk Orders will be redirected to Shipping Job. its mean this script does not do Self Delivery like the other stock shops script. while owner can still do shipping job on their own. as shipping job is open for all and no job requirement at the moment.)
  • Cashier System - All New Sales income money will be redirected to Cashier. Store Owner or Any OnDuty Clerk can Withdraw the money from Cashier.
  • Store Robbery - a Simple store robbery with Skill Check. Every Cashier can be Robbed with a default 30minutes cooldown.
  • Item Custom Effects on use. ( from item customisation or Preconfigured Metadatas ex.status)
  • Admin Store Management - Manage Store Stocks and everything, Add New Store Via Menu from preconfigured Shop Ownable types.
  • and more.

Commands

  • /stores - Open Admin store manage
  • /addstock - @param ShopName : string: ex: General @param ShopIndex : number: ex: 1 @param Amount : number: ex: 100 @extraparam ItemName : string: ex: burger

Preconfigured Shops

  • General 24 / 7 Stores
  • Ammunation
  • Black markets
  • Vehicle Shops ( Boat, Helis, Vehicles )

Shared Options - can be found config/init.lua

  • shared.framework - @value : string ex 'ESX' or 'QBCORE'
  • shared.oxShops - @value Boolean ( Allow you to use Ox Shops UI instead of Builtin UI ) Integrated Majority of Shop management Feature.
  • shared.allowplayercreateitem - @value Boolean - Allow you to Add new Custom Item to to Any Stores (exluding vehicleshop) Default false (only admin)
  • shared.target = Enable use of ox_target
  • shared.defaultStock = @value Boolean - Declare how much the Initial Stock upon Store Purchase.

Dependency

  • ox_inventory (latest)
  • ox_lib (latest)
  • ox_target (optional) can be configured init.lua (default is marker zone type)
  • ESX Legacy / QBCORE

Note

  • this resource will overide/disable ox inventory shops if config.oxShops is false

  • if you want to fully test the resource. you need to install all the items required here. to ox_inventory/data/items.lua , items can be found in data/install_items.lua.

  • Shop Images Used from \ox_inventory\web\images/{$item}.png

  • TO use Item Effects from Customisation @ data/item-customisation.lua

  • You need to Insert the export , export = 'renzu_shops.ItemUse', once you use this export. this will override your config from data/items.lua on ox.

  • Example

['burger'] = {
		label = 'Burger',
		weight = 0,
		client = {
			anim = 'eating',
			prop = 'burger',
			usetime = 2500,
			notification = 'You ate a delicious burger',
			export = 'renzu_shops.ItemUse'
		},
	},

DEMO IMAGES

  • General Store

image image

  • Ammunation image

  • Vehicle Shop image

  • Ondemand Selling

  • Store

image

  • Movable Shop

image

  • Store Manage

image image image image image

TASKS or can be contributed from Forking.

  • ✅ Create Item Datas for ox_inventory data/items.lua format. ( for default samples preconfigured items ) (easy)
  • ✅ Create Admin Menus to manage player shops. ( intermediate )
  • ✅ Add Transfer Ownership to Store Management ( normal )
  • ✅ Tweak Shipping Job Missions. fix or optimise zones, Trailer Spawning properly and etc.. (normal)
  • Enhance or Add more Effects to data/item-customisation.lua ( intermediate )
  • Change Blip Sprites. (very easy)
  • ✅ Support Multiple Frameworks. (easy)
  • Support Item Customisation to Movable Shops correctly. (intermediate)
  • ✅ replace scenario based when cooking to TaskPlay (easy)
  • ✅ Add Job based Access to Store Managing
  • ✅ Supports Ox_inventory Shop Default UI (experimental)
  • ✅ Support Adding New Item to store via Store Manage Menu (optional admin or player)
  • Store Logs

renzu_shops's People

Contributors

ajmedina avatar jellyton255 avatar renzuzu avatar theflybandit avatar xrtw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

renzu_shops's Issues

renzu shop issue

i used your shops script it would be great but i have one questions when i open the shop the ox inventory shops is also open how can i remove ox inventory shop and this green blip

Problem with the menu

Good morning, when I try to buy an item in the shop, I'm stuck in the menu and can't do anything anymore. I don't get an error message. (I'm using ESX Legacy) Here is the message from ox_inventory:
[ script:ox_inventory] [info] 1 items have been copied from the database.
[ script:ox_inventory] [info] You should restart the resource to load the new items.
[ script:ox_inventory] [info] Database contains 72 items.
[ script:ox_inventory] [warning] Any resources that rely on the database for item data is incompatible with this resource.
[ script:ox_inventory] [warning] Utilise 'exports.ox_inventory:Items()', or lazy-load ESX and use ESX.Items instead.
[ script:ox_inventory] [info] Inventory has loaded 299 items

Robbery

how to change to dirty money after you rob the strore?

Lates version bug

If in the latest version, the checkout menu does not work, if you close it, it disappears and gives an error. Stealing doesn't work either.
obrazek

Cant find

I could not find out where the script stores the data, who owns the store, what is in it, and so on. He also did not come here for a way to upgrade the store.

Remove Job Access

  1. An Option to Remove the Job Access.
  2. When I Sell the Store, the database entry gets removed but i can still open the Menu
  3. When i retstart the Script and have bought a store and run into the marker, the database entry is duplicated
  4. Sometime when opening the cashier after a Server restart, the menu looks like this: https://gyazo.com/e6d99af78327b431e69bddf5dc593797 and somtimes like this: https://gyazo.com/67e5f8b07fda7ca74941bb57c79c0399 . This only happens after Server Restart and not every time

lj-inventory Support

Hey - Could it be possible for you to add lj-inventory support to the shops? This would be a great feature as it is more widely used than the normal qb-inventory on qbcore

Pay now freezes shop ui

Capture
only error i get
when i select item to buy then click pay now the shop ui freezes restart script closes it but screen still blurred and cant move char

Add

Hi, please add the option for the store to own the job. They could put their own stuff in there, etc. Thanks

upgrade stores

possibility for the store owner to create custom categories and add the items he wants

Fix money display formatting

Money is formatted in the millions, you should drop the zeros and just display the amount it is, not what its relative to the millions.
FiveM_b2699_GTAProcess - December04 - 21 56 - 1374

Side note: the $ symbol goes before the number in this currency.

qb core error

SCRIPT ERROR: [string "insertstr = 'INSERT INTO %s (%s) VALUES (%s)'..."]:127: No such export AddItem in resource qb-inventory

can not create shop

Hello,
when I try to creat a shop its dosn't work and serverlog show that
SCRIPT ERROR: @renzu_shops/server/main.lua:274: attempt to index a nil value (field 'shared')

Enhancement

One improvement that would be interesting, is that the stores could be whitelisted. For example, a police armory that uses this store system, but only officers can open and buy.

InstallItems

[ script:renzu_shops] SCRIPT ERROR: @renzu_shops/server/main.lua:75: attempt to call a nil value (global 'TryInstallItems')

is there a sql ?

issue with add employee and Ondemand Selling

Hello, nice script in first time.

When you add a player with ox_target i got a error with coords boolean value from ox_lib. When desactivate ox_target no issue for add employee.
Second problem i have, its when i add employee on the store, the employee have access to the manage store (withdraw/add money etc) but dont have access to Ondemand Selling. Thanks in advance for reply ;)

ox_target

i can't open any stores then im using ox target

Enhancement (jobs)

add an option to the owner to be able to setjob in the name of the store in order to use renzu_jobs and create buyable business tell mechanic farms ect

ideas

a npc employee that you can hire that sells to customers with animations and reminds the owner when there no more stock and after a certain amount of time it takes the money from the cashier into the vault and even a robbing likes these and if the npc dies the store closes for a certain amount of time

https://www.youtube.com/watch?v=l926BP_HdS8
https://streamable.com/g31y4

Enhancement

Enhancements :

  • Ability to display your owned personal vehicle with custom price and other details in specific areas or anywhere on the map.

  • Transfer the vehicle ownership via pinkslip (player ID)

  • Ability to spin the car with the mouse.

  • Dissable the ongoing purchase order for food in the vehicleshop if you own it.

  • Sell the car back.

help plz

image
iam having this problem in qbcore when i buy something from the store

blips

blips dont stay upon joining the server as like script isnt started but is

New version (SQL) groups and rank not working for default shop

Hello, i can't create a default shop with renzu shops with groups like groups = 'police' and a set a rank for the item like example of ox_inventory. When i try to print "groups = var.shop?.groups," he return false. A exemple of my default shop :

PoliceArmoury = {
name = 'Armurerie L.S.P.D',
groups = 'police',
blip = {
id = 110, colour = 84, scale = 0.8
}, inventory = {
{ name = 'ammo-9', price = 5, grade = 2 },
{ name = 'ammo-rifle', price = 5, grade = 3 },
{ name = 'tazer_clip', price = 5, },
{ name = 'WEAPON_FLASHLIGHT', price = 200 },
{ name = 'WEAPON_NIGHTSTICK', price = 100 },
{ name = 'WEAPON_GLOCK', price = 500, metadata = { registered = true, serial = 'POL' }, license = 'weapon', grade = 2 },
{ name = 'WEAPON_M4', price = 1000, metadata = { registered = true, serial = 'POL' }, license = 'weapon', grade = 3 },
{ name = 'WEAPON_TASER', price = 500, metadata = { registered = true, serial = 'POL'} },

  }, locations = {
  	vec3(-548.47, -118.25, 37.87)
  }, targets = {
  	{ loc = vec3(-548.47, -118.25, 37.87), length = 0.5, width = 3.0, heading = 270.0, minZ = 30.5, maxZ = 32.0, distance = 6 }
  }

},

Thanks if you can resolve this issue @renzuzu appreciate

sell store

when pressing cancel on the sell store menu it still sells it

fedex bug

fedex does not work (print client to f8)

attempt to call a nil value (global 'LoadResoursceFile')

[ c-scripting-core] Creating script environments for renzu_shops
[ script:renzu_shops] Error loading script init.lua in resource renzu_shops: @renzu_shops/init.lua:94: attempt to call a nil value (global 'LoadResoursceFile')
[ script:renzu_shops] stack traceback:
[ script:renzu_shops] @renzu_shops/init.lua:94: in function 'request'
[ script:renzu_shops] @renzu_shops/init.lua:100: in main chunk
[ c-scripting-core] Failed to load script init.lua.
[ citizen-server-impl] Started resource renzu_shops

Hello, how can I fix this error?

ox_inventory experimental

when i download it it says it hasnt been build and when i download the release or tag it just breaks my server

moveable shops

[  script:renzu_shops] SCRIPT ERROR: @renzu_shops/server/main.lua:1065: renzu_shops was unable to execute a query!
[  script:renzu_shops] Duplicate entry 'Burger:char2:be34b8779c1db55fa47a0c7cffa57dab9' for key 'identifier'
[  script:renzu_shops] INSERT INTO movableshops (`identifier`,`owner`,`money`,`items`,`plate`,`type`,`shopname`) VALUES(?,?,?,?,?,?,?) ["Burger:char2:be34b8779c1db55fa47a0c7cffa57dab92a91184","char2:be34b8779c1db55fa47a0c7cffa57dab92a91184","{\"black_money\":0,\"money\":0}","[]",null,"object","Burger"]
[  script:renzu_shops] > callbackResponse (@ox_lib/callback/server.lua:59)
[  script:renzu_shops] > handler (@ox_lib/callback/server.lua:75)
[  script:renzu_shops] > <unknown> (@oxmysql/dist/build.js:22256)
[  script:renzu_shops] > processTicksAndRejections (node:internal/process/task_queues:96)
[  script:renzu_shops] > async rawQuery (@oxmysql/dist/build.js:22224)
[  script:renzu_shops] 

https://streamable.com/uwgq8z

Robbery

pano palitan yung money to black_money after ma rob?

Carry Items

In the Script, there is no query, that ask wether we can carry the item or not (ox_inventory)
The second thing I want to mention, can you implemet a locale system, so that I don't have to rewrite the whole client lua after every update? Would be nice!

Vehicleshop

I can't park my cars after I bought them with the vehicleshop on qb-core no error it just does not save the vehiclemodel and citizenid

taco van bug

when in the taco van when you press move cart/stop selling the camera gets stuck

Vehicle Shop Bug

When you finish purchasing a vehicle, your letter "Q" will be automatically disabled. making it impossible to turn off the vehicle radio.

Major script error in new update when a player attempts to buy an item

There's a major script error in new update when a player attempts to buy an item:

For some reason, according to the error it looks like the resource is trying to add the file's code to the inventory???? No idea what's going on there.

[ script:qb-inventory] SCRIPT ERROR: @qb-inventory/server/main.lua:644: attempt to index a nil value (local 'ItemData')
[ script:qb-inventory] > ref (@qb-inventory/server/main.lua:644)
[ script:qb-inventory] > AddItem (nsertstr = 'INSERT INTO %s (%s) VALUES (%s)'
[ script:qb-inventory] if shared.framework == 'ESX' then
[ script:qb-inventory] 	vehicletable = 'owned_vehicles'
[ script:qb-inventory] 	vehiclemod = 'vehicle'
[ script:qb-inventory] 	garage = 'Garage A'
[ script:qb-inventory] 	columns = '`plate`, `'..vehiclemod..'`, `'..owner..'`, `'..stored..'`, `job`'
[ script:qb-inventory] 	values = '?, ?, ?, ?, ?'
[ script:qb-inventory] elseif shared.framework == 'QBCORE' then
[ script:qb-inventory] 	vehicletable = 'player_vehicles'
[ script:qb-inventory] 	vehiclemod = 'mods'
[ script:qb-inventory] 	owner = 'license'
[ script:qb-inventory] 	stored = 'state'
[ script:qb-inventory] 	garage_id = 'garage'
[ script:qb-inventory] 	type_ = 'vehicle'
[ script:qb-inventory] 	playertable = 'players'
[ script:qb-inventory] 	playeridentifier = 'citizenid'
[ script:qb-inventory] 	playeraccounts = 'money'
[ script:qb-inventory] 	garage = 'pillboxgarage'
[ script:qb-inventory] 	columns = '`plate`, `'..vehiclemod..'`, `'..owner..'`, `'..stored..'`, `job`, `citizenid`, `hash`, `garage`, `vehicle`'
[ script:qb-inventory] 	values = '?, ?, ?, ?, ?, ?, ?, ?, ?'
[ script:qb-inventory] end
[ script:qb-inventory] 
[ script:qb-inventory] function GetPlayerFromIdentifier(identifier)
[ script:qb-inventory] 	self = {}
[ script:qb-inventory] 	if shared.framework == 'ESX' then
[ script:qb-inventory] 		local player = ESX.GetPlayerFromIdentifier(identifier)
[ script:qb-inventory] 		self.src = player and player.source
[ script:qb-inventory] 		return player
[ script:qb-inventory] 	else
[ script:qb-inventory] 		local getsrc = QBCore.Functions.GetSource(identifier)
[ script:qb-inventory] 		if not getsrc then return end
[ script:qb-inventory] 		self.src = getsrc
[ script:qb-inventory] 		return GetPlayerFromId(self.src)
[ script:qb-inventory] 	end
[ script:qb-inventory] end
[ script:qb-inventory] 
[ script:qb-inventory] function GetPlayerFromId(src)
[ script:qb-inventory] 	self = {}
[ script:qb-inventory] 	self.src = src
[ script:qb-inventory] 	if shared.framework == 'ESX' then
[ script:qb-inventory] 		return ESX.GetPlayerFromId(self.src)
[ script:qb-inventory] 	elseif shared.framework == 'QBCORE' then
[ script:qb-inventory] 		xPlayer = QBCore.Functions.GetPlayer(self.src)
[ script:qb-inventory] 		if not xPlayer then return end
[ script:qb-inventory] 		if xPlayer.identifier == nil then
[ script:qb-inventory] 			xPlayer.identifier = xPlayer.PlayerData.license
[ script:qb-inventory] 		end
[ script:qb-inventory] 		if xPlayer.citizenid == nil then
[ script:qb-inventory] 			xPlayer.citizenid = xPlayer.PlayerData.citizenid
[ script:qb-inventory] 		end
[ script:qb-inventory] 		if xPlayer.job == nil then
[ script:qb-inventory] 			xPlayer.job = xPlayer.PlayerData.job
[ script:qb-inventory] 		end
[ script:qb-inventory] 
[ script:qb-inventory] 		xPlayer.getMoney = function(value)
[ script:qb-inventory] 			return xPlayer.PlayerData.money['cash']
[ script:qb-inventory] 		end
[ script:qb-inventory] 		xPlayer.addMoney = function(value)
[ script:qb-inventory] 				QBCore.Functions.GetPlayer(self.src).Functions.AddMoney('cash',tonumber(value))
[ script:qb-inventory] 			return true
[ script:qb-inventory] 		end
[ script:qb-inventory] 		xPlayer.addAccountMoney = function(type, value)
[ script:qb-inventory] 			type = type:gsub('money', 'cash')
[ script:qb-inventory] 			QBCore.Functions.GetPlayer(self.src).Functions.AddMoney(type,tonumber(value))
[ script:qb-inventory] 			return true
[ script:qb-inventory] 		end
[ script:qb-inventory] 		xPlayer.removeMoney = function(value)
[ script:qb-inventory] 			QBCore.Functions.GetPlayer(self.src).Functions.RemoveMoney('cash',tonumber(value))
[ script:qb-inventory] 			return true
[ script:qb-inventory] 		end
[ script:qb-inventory] 		xPlayer.getAccount = function(type)
[ script:qb-inventory] 			if type == 'money' then
[ script:qb-inventory] 				type = 'cash'
[ script:qb-inventory] 			end
[ script:qb-inventory] 			return {money = xPlayer.PlayerData.money[type]}
[ script:qb-inventory] 		end
[ script:qb-inventory] 		xPlayer.removeAccountMoney = function(type,val)
[ script:qb-inventory] 			if type == 'money' then
[ script:qb-inventory] 				type = 'cash'
[ script:qb-inventory] 			end
[ script:qb-inventory] 			QBCore.Functions.GetPlayer(self.src).Functions.RemoveMoney(type,tonumber(val))
[ script:qb-inventory] 			return true
[ script:qb-inventory] 		end
[ script:qb-inventory] 		xPlayer.showNotification = function(msg)
[ script:qb-inventory] 			TriggerEvent('QBCore:Notify',self.src, msg)
[ script:qb-inventory] 			return true
[ script:qb-inventory] 		end
[ script:qb-inventory] 		xPlayer.addInventoryItem = function(item,amount,info,slot)
[ script:qb-inventory] 			local info = info
[ script:qb-inventory] 			QBCore.Functions.GetPlayer(tonumber(self.src)).Functions.AddItem(item,amount,slot or false,info)
[ script:qb-inventory] 		end
[ script:qb-inventory] 		xPlayer.removeInventoryItem = function(item,amount,slot)
[ script:qb-inventory] 			QBCore.Functions.GetPlayer(tonumber(self.src)).Functions.RemoveItem(item, amount, slot or false)
[ script:qb-inventory] 		end
[ script:qb-inventory] 		xPlayer.getInventoryItem = function(item)
[ script:qb-inventory] 			local gi = QBCore.Functions.GetPlayer(tonumber(self.src)).Functions.GetItemByName(item) or {count = 0}
[ script:qb-inventory] 			gi.count = gi.amount or 0
[ script:qb-inventory] 			return gi
[ script:qb-inventory] 		end
[ script:qb-inventory] 		xPlayer.getGroup = function()
[ script:qb-inventory] 			return QBCore.Functions.IsOptin(self.src)
[ script:qb-inventory] 		end
[ script:qb-inventory] 		if xPlayer.source == nil then
[ script:qb-inventory] 			xPlayer.source = self.src
[ script:qb-inventory] 		end
[ script:qb-inventory] 		return xPlayer
[ script:qb-inventory] 	end
[ script:qb-inventory] end
[ script:qb-inventory] 
[ script:qb-inventory] Inventory.AddItem = function(source,item,count,metadata,slot)
[ script:qb-inventory] 	if shared.inventory == 'ox_inventory' then
[ script:qb-inventory] 		return exports.ox_inventory:AddItem(source,item,count,metadata,slot)
[ script:qb-inventory] 	else
[ script:qb-inventory] 		if item == 'money' then
[ script:qb-inventory] 			local xPlayer = GetPlayerFromId(source)
[ script:qb-inventory] 			if not xPlayer then 
[ script:qb-inventory] 				if not tonumber(source) then
[ script:qb-inventory] 					source = source:gsub('Hotdog:','')
[ script:qb-inventory] 					source = source:gsub('Burger:','')
[ script:qb-inventory] 					source = source:gsub('Taco:','')
[ script:qb-inventory] 					GetPlayerFromIdentifier(source).addAccountMoney('money',count)
[ script:qb-inventory] 				end
[ script:qb-inventory] 				return
[ script:qb-inventory] 			end
[ script:qb-inventory] 			xPlayer.addAccountMoney('money',count)
[ script:qb-inventory] 		else
[ script:qb-inventory] 			local added = exports['qb-inventory']:AddItem(source, item, count, slot, metadata)
[ script:qb-inventory] 			if not added then
[ script:qb-inventory] 				if not slot then
[ script:qb-inventory] 					local stash = exports['qb-inventory']:GetStashItems(source)
[ script:qb-inventory] 					slot = exports['qb-inventory']:GetFirstSlotByItem(stash, item, metadata)
[ script:qb-inventory] 					if not slot then
[ script:qb-inventory] 						for i = 1, 50 do
[ script:qb-inventory] 							if not stash[i] then
[ script:qb-inventory] 								slot = i
[ script:qb-inventory] 								break
[ script:qb-inventory] 							end
[ script:qb-inventory] 						end
[ script:qb-inventory] 					end
[ script:qb-inventory] 				end
[ script:qb-inventory] 				exports['qb-inventory']:AddToStash(source, slot, otherslot, item, count, metadata)
[ script:qb-inventory] 			end
[ script:qb-inventory] 		end
[ script:qb-inventory] 	end
[ script:qb-inventory] end
[ script:qb-inventory] 
[ script:qb-inventory] Inventory.RemoveItem = function(source,item,count,metadata,slot)
[ script:qb-inventory] 	if shared.inventory == 'ox_inventory' then
[ script:qb-inventory] 		return exports.ox_inventory:RemoveItem(source, item, count, metadata, slot)
[ script:qb-inventory] 	else
[ script:qb-inventory] 		if item == 'money' then
[ script:qb-inventory] 			local xPlayer = GetPlayerFromId(source)
[ script:qb-inventory] 			if not tonumber(source) then
[ script:qb-inventory] 				source = source:gsub('Hotdog:','')
[ script:qb-inventory] 				source = source:gsub('Burger:','')
[ script:qb-inventory] 				source = source:gsub('Taco:','')
[ script:qb-inventory] 				GetPlayerFromIdentifier(source).removeMoney('money',count)
[ script:qb-inventory] 			end
[ script:qb-inventory] 			xPlayer.removeMoney(count)
[ script:qb-inventory] 		else
[ script:qb-inventory] 			local removed = exports['qb-inventory']:RemoveItem(source, item, count, slot, metadata)
[ script:qb-inventory] 			if not removed then
[ script:qb-inventory] 				if not slot then
[ script:qb-inventory] 					local stash = exports['qb-inventory']:GetStashItems(source)
[ script:qb-inventory] 					slot = exports['qb-inventory']:GetFirstSlotByItem(stash, item, metadata)
[ script:qb-inventory] 					if not slot then
[ script:qb-inventory] 						for i = 1, 50 do
[ script:qb-inventory] 							if not stash[i] then
[ script:qb-inventory] 								slot = i
[ script:qb-inventory] 								break
[ script:qb-inventory] 							end
[ script:qb-inventory] 						end
[ script:qb-inventory] 					end
[ script:qb-inventory] 				end
[ script:qb-inventory] 				exports['qb-inventory']:RemoveFromStash(source, slot, item, count, metadata) 
[ script:qb-inventory] 			end
[ script:qb-inventory] 		end
[ script:qb-inventory] 	end
[ script:qb-inventory] end:141)
[ script:qb-inventory] > [global chunk] (@renzu_shops/server/main.lua:667)
[ script:qb-inventory] > handler (@ox_lib/callback/server.lua:75)
[ script:qb-inventory] > <unknown> (@oxmysql/dist/build.js:22252)
[ script:qb-inventory] > processTicksAndRejections (node:internal/process/task_queues:96)
[  script:renzu_shops] SCRIPT ERROR: [string "insertstr = 'INSERT INTO %s (%s) VALUES (%s)'..."]:141: 
[  script:renzu_shops]  An error occurred while calling export `AddToStash` in resource `qb-inventory`:
[  script:renzu_shops] 
[  script:renzu_shops]  ---
[  script:renzu_shops] > <unknown> (@oxmysql/dist/build.js:22252)
[  script:renzu_shops] > processTicksAndRejections (node:internal/process/task_queues:96)
[  script:renzu_shops] 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.