jimathy / jim-shops Goto Github PK
View Code? Open in Web Editor NEWQBCore QB-Menu based replacement for qb-shops
QBCore QB-Menu based replacement for qb-shops
Any ideas Just Put The Update In And Says Index Nill Value Item Info
Hey jimathy, we really love your Scripts, and thanks that they are free.
We have the problem that we installed your jim-shops, everythings works fine, but the qb-truckerjob doesnt work.
Maybe it doesnt recommend the shop, can you please tell us how to fix it?
Only have this Script Error with Trucks, we looked but cant figure it out.
Thanks
Hey, I threw your awesome stores on my server. Everything works very well, except for the ammunations. The NPC is there but when I select and want to open the menu, he first does nothing and when I do it a second time, he kicks me off the server. These are the errors:
[ script:jim-shops] SCRIPT ERROR: @jim-shops/server.lua:151: attempt to index a nil value (local 'Player')
[ script:jim-shops] > TriggerCallback (@qb-core/server/functions.lua:207)
[ script:jim-shops] > handler (@qb-core/server/events.lua:110)
[ script:qb-core] SCRIPT ERROR: error object is not a string
[ script:qb-core] (nil stack trace)SCRIPT ERROR: @jim-shops/server.lua:151: attempt to index a nil value (local 'Player')
How do i add ammo types for all weapons and what are thier description
I have cash as an item its not a script I implemeted in my players lua for qb core. I'm able to buy items with bank but not cash is it due to my banking system? I use OKOK banking. Or do I need to use renewed banking in order to use cash with Jim-shops
When buying an item with cash as item, the store gives me the money even if I do not have enough money,
If I have enough money, it will charge for the Item, but if I have Zero Cash, it will still give me the item of the store.
I notice there are lots of Config.Debug
should they be Config.System.Debug
Hi Jim, I really like your work and your trades but since you can't pay with dirty money I use another script directly on the blackmarket.
And it doesn't work properly every time after server restart or the script doesn't respond to Qb-target
Your trades are 100% functional but
IK-Blackmarket which I use as an add-on doesn't work for me.
Can you help me with that ?
Before with qb-shops it worked
Translated with www.DeepL.com/Translator (free version)
could you add like a ["showblip"] = false, for anyone who using them like for ems pd. thanks
You can fake the system. you can literally buy anything from a shop without paying for it
basically, i have a video but not sure if i can attatch it.
basically if a person set sthe value to 1 dollar and has NO cash on them they can buy whatever they want without the charge
hi when we pay by card all items do not charge
Change camera angle of progress bar during food crafting? Is it possible?
Tried few ways to achieve a posibility to buy a weapon, having a Weapon License, but seems that if for Ammunnition you set "true" for required license
example:
{ name = "weapon_vintagepistol", price = math.random(PistolMin, PistolMax), amount = 5, requiresLicense = true },
In game player can't see the weapon in the shop.
And in his inventory he has a weapon license
For me as an admin I see everything, but players can't buy the items, that are marked with the license part set as True.
Also as I can see in the server.lua
it is defined in the same way as I have in items.lua
Appreciate for any help with this. Maybe I'm missing something..
Thanks!
Any way to make stores open with qb-core drawtext?? have both options, qb-target and open by pressing E?
If money 0 still buy products
same with banking
Hi loaded scrips all works well I just cant find the black-market dealer. I have specified coords but after resource restart and server restart there is nothing
Hey my names Reddoerufu and i was wondering if you can contact me on discord asap to talk over some things because ive been getting nil and my black market isnt working so if you could help that would be greatly appreciated
Reddoerufu#3505 -- Discord
Error :
AddEventHandler('onResourceStart', function(resource) if GetCurrentResourceName() == resource then TriggerEvent("jim-shops:MakeStash") end
for k, v in pairs(Config.Products) do
for i = 1, #v do
if not QBCore.Shared.Items[Config.Products[k][i].name] then
print("Config.Products['"..k.."'] can't find item: "..Config.Products[k][i].name)
end
end
end
for k, v in pairs(Config.Locations) do
if v["products"] == nil then
print("Config.Locations['"..k.."'] can't find its product table")
end
end
end)
Line No 125 : for i = 1, #v["products"] do
for k, v in pairs(Config.Locations) do
local stashTable = {}
for l, b in pairs(v["coords"]) do
for i = 1, #v["products"] do
if Config.Debug then print("MakeStash - Searching for item '"..v["products"][i].name.."'")
if not QBCore.Shared.Items[v["products"][i].name:lower()] then
print ("MakeStash - Can't find item '"..v["products"][i].name.."'")
end
end
local itemInfo = QBCore.Shared.Items[v["products"][i].name:lower()]
stashTable[i] = {
name = itemInfo["name"],
amount = tonumber(v["products"][i].amount),
info = {},
label = itemInfo["label"],
description = itemInfo["description"] ~= nil and itemInfo["description"] or "",
weight = itemInfo["weight"],
type = itemInfo["type"],
unique = itemInfo["unique"],
useable = itemInfo["useable"],
image = itemInfo["image"],
slot = i,
}
end
if Config.Limit then TriggerEvent('jim-shops:server:SaveStashItems', "["..k.."("..l..")]", stashTable)
elseif Config.Limit == false then stashname = "["..k.."("..l..")]" MySQL.Async.execute('DELETE FROM stashitems WHERE stash= ?', {stashname}) end
end
end
end)```
SCRIPT ERROR: @jim-shops/shared/shared.lua:3: attempt to index a nil value (global 'Config')
[ script:jim-shops] > fn (@jim-shops/shared/shared.lua:3)
[ script:jim-shops] SCRIPT ERROR: @jim-shops/shared/shops.lua:283: attempt to index a nil value (global 'Config')
[ script:jim-shops] > fn (@jim-shops/shared/shops.lua:283)
[ script:jim-shops] SCRIPT ERROR: @jim-shops/server.lua:466: attempt to index a nil value (global 'Config')
[ script:jim-shops] > fn (@jim-shops/server.lua:466)
[ script:jim-shops] SCRIPT ERROR: @jim-shops/server.lua:273: attempt to index a nil value (global 'Config')
[ script:jim-shops] > handler (@jim-shops/server.lua:273)
[ script:jim-shops] > handler (@jim-shops/server.lua:4)
[ script:jim-shops] SCRIPT ERROR: @jim-shops/server.lua:7: attempt to index a nil value (global 'Config')
[ resources] Started resource jim-shops
The ox callback config does not seem to work. after switching from qb to ox the blips & peds do not appear.
this is the error I receive, taken from my server console after setting amount to 1 (one) and hitting buy
[script:jim-shops] SCRIPT ERROR: @jim-shops/server.lua:54: attempt to perform arithmetic on a nil value (field 'amount')
In shared. lua replace Config.Notify
with Config.System.Notify
hi, can you help me with adding money to specific job? example medickit money goes to ambulance account, thanks
[ citizen-server-impl] Stopping resource jim-shops
[ c-scripting-core] Creating script environments for jim-shops
[ script:jim-shops] Jim-Shops v1.5 - Shop Script by Jimathy
[ script:jim-shops] SCRIPT ERROR: @jim-shops/server.lua:131: attempt to index a nil value (field '?')
[ script:jim-shops] > handler (@jim-shops/server.lua:3)
[ script:jim-shops] SCRIPT ERROR: @jim-shops/server.lua:6: attempt to index a nil value (field '?')
[ script:jim-shops] (nil stack trace)Started resource jim-shops
could the shop items be side by side, if you had more then say 6 items. keep up the great work.
Greetings, first of all would like to say that i love this shops and the away they work.
However im facing a little issue that the NPCs from the shops are multiplying some times eveen preventing the players from entering stores.
Was this noticed before, is there a way to fix it?
Thanks in advance,
KL
when a player enters and exits the game, he no longer sees any type of shop, i need to restart the script
I was wondering how do I go about adding more slots to shops? I have 30 items in the 24/7 shops and if I add more to it I get errors, however I can replace the item on line 30 with any and get no errors as long as item count does not go over 30? any help with this by chance?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.