#1
Related content
Messages
0
Reactions
0
Credits
555
Joined
N/A
Messages
301
Reactions
0
Credits
555
Joined
Aug 2022
#21
@@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
#22
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
0
Credits
886
Joined
Aug 2023
#23
SCRIPT ERROR: @ac-shop/server/server.lua:97: attempt to call a nil value (field 'addInventoryItem')
Messages
301
Reactions
0
Credits
555
Joined
Aug 2022
#24
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
301
Reactions
0
Credits
555
Joined
Aug 2022
#25
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
0
Credits
886
Joined
Aug 2023
#26
New QBCore lj-inventory bro :=)
WestRust,
wrote:
WestRust,
wrote:
What is your inventory and in which infrastructure are you getting errors?
Messages
301
Reactions
0
Credits
555
Joined
Aug 2022
#27
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
0
Credits
886
Joined
Aug 2023
#28
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
301
Reactions
0
Credits
555
Joined
Aug 2022
#29
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,230
Joined
Jul 2022
#30
[attachment removed]
working but if i buy it doesn't send to my inventory[/attachment]
working but if i buy it doesn't send to my inventory[/attachment]
Messages
301
Reactions
0
Credits
555
Joined
Aug 2022
#31
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
7
Joined
Apr 2022
#32
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
#33
Good share bro cheers good one this
Messages
301
Reactions
0
Credits
555
Joined
Aug 2022
#34
esx or qb open source +rep
Messages
125
Reactions
0
Credits
7
Joined
Mar 2022
#35
Nice thanks man for this share
Messages
118
Reactions
0
Credits
7
Joined
Apr 2022
#36
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
#37
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
17
Reactions
0
Credits
8
Joined
Jan 2024
#38
Thanks for sharing but a little expensive
Messages
471
Reactions
0
Credits
3,712
Joined
Dec 2021
#39
wow nice thanks, looks so clean
Messages
552
Reactions
0
Credits
44
Joined
Nov 2022
#40
Very nice and very good job
Categories
General Discussions
FiveM Leaks
RageMP
Miscellaneous
RUST