HighLeaks
Help

Ac-Shop

WestRust WestRust Started 95 replies 12,096 views 35 Credits

Download Link Locked

Pay 35 credits to unlock the download link for 24 hours.

Login to unlock
#1


Full Fix Open Source
#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.
#22
how i fix this?



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




[attachment removed]



the all name i knife[/attachment]
#23
SCRIPT ERROR: @ac-shop/server/server.lua:97: attempt to call a nil value (field 'addInventoryItem')
#24




YehodAtias,

wrote:



how i fix this?



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]
#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?
#26
New QBCore lj-inventory bro :=)





WestRust,

wrote:



What is your inventory and in which infrastructure are you getting errors?


#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?
#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)
#29




esplugin,

wrote:



Yes ı fixed qbcore



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.
#30
[attachment removed]



working but if i buy it doesn't send to my inventory[/attachment]
#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




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]
#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
#33
Good share bro cheers good one this
#34
esx or qb open source +rep
#35
Nice thanks man for this share
#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
#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




CAN YOU HELP ME mm[/attachment]
#38
Thanks for sharing but a little expensive
#39
wow nice thanks, looks so clean
#40
Very nice and very good job