[RELEASE] d3x_vehicleshop

nice script

Hi @Duart3x x, I’m having a problem with your stand, when I buy a car and I want to leave the menu, the mouse pointer is always there and to remove it I have to restart the script. Could it help?

Thanks !

Help I have a problem with the purchase of vehicles I added a vip coin so that they can buy vip vehicles it is working it takes away the vip money but at the same time if I have money from my game account I still make the purchase could you help me I leave you the code


ESX.RegisterServerCallback('d3x_vehicleshopvip:buyVehicle', function (source, cb, vehicleModel)
	local xPlayer     = ESX.GetPlayerFromId(source)
	local vehicleData = nil
	local bankMoney = xPlayer.getAccount('monedavip').money
	print(bankMoney)
	for i=1, #Vehicles, 1 do
		if Vehicles[i].model == vehicleModel then
			vehicleData = Vehicles[i]
			break
		end
	end

	if xPlayer.getMoney() >= vehicleData.price then
		xPlayer.removeMoney(vehicleData.price)
		cb(true)
	else if bankMoney >= vehicleData.price then
		xPlayer.setAccountMoney('monedavip',bankMoney-vehicleData.price)
		print(xPlayer.getAccount('monedavip').money)
		cb(true)
	else
		cb(false)
	end
end
end)```

I can’t insert the SQL into the database, unfortunately there are errors. need help!

does it work for qbcore

where can we get or buy this ?

when i buy the car it says, that its not saved in the data base do you know why?

i didn’t understand what should i change owner to

did you fix this