Messages
296
Reactions
1
Credits
512
Joined
Aug 2022
Messages
296
Reactions
1
Credits
512
Joined
Aug 2022
@@YehodAtias
Add the items you want to the markets from the config and as an extra example, you can look at markets numbered 12 and 13, they also have items.
Add the items you want to the markets from the config and as an extra example, you can look at markets numbered 12 and 13, they also have items.
Messages
5
Reactions
0
Credits
475
Joined
Oct 2023
how i fix this?
please tell
WestRust,
wrote:
[attachment removed]
the all name i knife[/attachment]
please tell
WestRust,
wrote:
@@YehodAtias
Add the items you want to the markets from the config and as an extra example, you can look at markets numbered 12 and 13, they also hav...
Add the items you want to the markets from the config and as an extra example, you can look at markets numbered 12 and 13, they also hav...
[attachment removed]
the all name i knife[/attachment]
Messages
31
Reactions
3
Credits
846
Joined
Aug 2023
SCRIPT ERROR: @ac-shop/server/server.lua:97: attempt to call a nil value (field 'addInventoryItem')
Messages
296
Reactions
1
Credits
512
Joined
Aug 2022
YehodAtias,
wrote:
how i fix this?
please tell
[attachment removed]
the all name i knife
please tell
[attachment removed]
the all name i knife
This error is not from me, can you look at the item names in the config, I tested it on my friend and if we saw something like this, we would fix it.[/attachment]
Messages
296
Reactions
1
Credits
512
Joined
Aug 2022
esplugin,
wrote:
SCRIPT ERROR: @ac-shop/server/server.lua:97: attempt to call a nil value (field 'addInventoryItem')
What is your inventory and in which infrastructure are you getting errors?
Messages
31
Reactions
3
Credits
846
Joined
Aug 2023
New QBCore lj-inventory bro :=)
WestRust,
wrote:
WestRust,
wrote:
What is your inventory and in which infrastructure are you getting errors?
Messages
296
Reactions
1
Credits
512
Joined
Aug 2022
It will be fixed if you change it with the lj inventory item giving event, or it may not be the required parameter, so can you make the necessary change by looking in another script?
Messages
31
Reactions
3
Credits
846
Joined
Aug 2023
WestRust,
wrote:
It will be fixed if you change it with the lj inventory item giving event, or it may not be the required parameter, so can you make the necessary chan...
Yes ı fixed qbcore
local QBCore = exports['qb-core']:GetCoreObject()
RegisterNetEvent('ac-shop:pay')
AddEventHandler('ac-shop:pay', function(data)
local src = source
local xPlayer = QBCore.Functions.GetPlayer(src)
if data.payType == "cash" then
local money = xPlayer.PlayerData.money['cash']
if money >= data.price then
xPlayer.Functions.RemoveMoney('cash', data.price, "Shops")
AC.Success()
for k,v in pairs(data.cartArr) do
xPlayer.Functions.AddItem(v.itemname, tonumber(v.count))
end
else
AC.Error()
end
else
local bankMoney = xPlayer.PlayerData.money['bank']
if bankMoney >= data.price then
xPlayer.Functions.RemoveMoney('bank', data.price, "Shops")
AC.Success()
for k,v in pairs(data.cartArr) do
xPlayer.Functions.AddItem(v.itemname, tonumber(v.count))
end
else
AC.Error()
end
end
end)
Messages
296
Reactions
1
Credits
512
Joined
Aug 2022
esplugin,
wrote:
Yes ı fixed qbcore
local QBCore = exports['qb-core']:GetCoreObject()
RegisterNetEvent('ac-shop:pay')
AddEventHandler('ac-...
local QBCore = exports['qb-core']:GetCoreObject()
RegisterNetEvent('ac-shop:pay')
AddEventHandler('ac-...
Thanks for sharing. If anyone else gets the same error, they can use this.
Messages
428
Reactions
0
Credits
1,227
Joined
Jul 2022
Messages
296
Reactions
1
Credits
512
Joined
Aug 2022
callisto,
wrote:
[attachment removed]
working but i get the bug an item name at shoping chart, and if i buy it doesn't send to my inventory
working but i get the bug an item name at shoping chart, and if i buy it doesn't send to my inventory
Use the item giving function suitable for your inventory, whatever infrastructure you are using, make that code by looking at the item giving function in your script.[/attachment]
Messages
118
Reactions
0
Credits
17
Joined
Apr 2022
WestRust,
wrote:
I added the new link, do not forget to select the discount from the new link and the framework from the config.
i have test it and it works thank you very much but i have pay double can you give me credits back please
Messages
136
Reactions
0
Credits
238
Joined
Aug 2022
Messages
296
Reactions
1
Credits
512
Joined
Aug 2022
Messages
126
Reactions
0
Credits
7
Joined
Mar 2022
Messages
118
Reactions
0
Credits
17
Joined
Apr 2022
WestRust,
wrote:
esx or qb open source +rep
can you give me please my credits back i have pay double that would be nice
Messages
3
Reactions
0
Credits
267
Joined
Dec 2023
callisto,
wrote:
[attachment removed]
working but i get the bug an item name at shoping chart, and if i buy it doesn't send to my inventory
working but i get the bug an item name at shoping chart, and if i buy it doesn't send to my inventory
CAN YOU HELP ME mm[/attachment]
Messages
13
Reactions
0
Credits
113
Joined
Jan 2024
Messages
472
Reactions
1
Credits
3,702
Joined
Dec 2021
Messages
553
Reactions
0
Credits
44
Joined
Nov 2022