GithubHelp home page GithubHelp logo

jim-shops's People

Contributors

adzeepulse avatar epicv-roleplay avatar flexbuf avatar guhblag avatar holidayy95 avatar jimathy avatar mikepauer avatar ssthethird avatar t3mpu5 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

Watchers

 avatar  avatar  avatar  avatar

jim-shops's Issues

Errors in the new Version

Greetings again the new version of the shops are giving me some errors to start
image
When you try to purchase an item with quantity.

image
When you restart or start the script.

Am i doing anything wrong?
Thanks in advance
KL

qb-truckerjob (standard) isnt working with jim-shops

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
grafik

Ammunations not working for me.

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')

Do you know what this could be? Greetings Carinius
Bild_2022-04-19_124504125

error

Screenshot (43)
Pops up whenever I try to interact with a store.

Cash issue

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

Able to buy items even without cash

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.

Config.Debug issue

I notice there are lots of Config.Debug should they be Config.System.Debug

Jim-shops + Another script for shops

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)

showblip request

could you add like a ["showblip"] = false, for anyone who using them like for ems pd. thanks

Cash Exploit

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

Weapon License + Jim Shops

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.
image

And in his inventory he has a weapon license
image

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
image
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!

jim-shopsV2

A few small problems after update
image
jim-mechanic set jim-shops true

and

image
change target to ox

qb-core drawtext??

Any way to make stores open with qb-core drawtext?? have both options, qb-target and open by pressing E?

Money bug

If money 0 still buy products
same with banking

Blackmarket

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

Help please

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

[ script:jim-shops] SCRIPT ERROR: @jim-shops/server.lua:125: attempt to get length of a nil value (field 'products') [ script:jim-shops] > handler (@jim-shops/server.lua:3)

Error :

image

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

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

Ox Callback.

The ox callback config does not seem to work. after switching from qb to ox the blips & peds do not appear.

When paying get a error @jims-shops/server.lua54

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')

Blips And Peds

So Some People Can See Them In My Server Some People Cant Any Ideas?????
Screenshot (970)
i have all shops activated aswell

Error

[ 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

a suggestion

could the shop items be side by side, if you had more then say 6 items. keep up the great work.

NPCs multiplying,,,

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

Enter exit

when a player enters and exits the game, he no longer sees any type of shop, i need to restart the script

adding more slots

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?

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.