[HELP] vrp_garage + vrp_lscustom + basic_garage ERROR (rent_vehicles)

I guys, i have a problem with vrp_garage used with vrp_lscustom + basic_garage.
When i try to sell my vehicle to another player (pressing “K -> Vehicle -> Sell to a player”) console sends me an error:

Error running system event handling function for resource vrp: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: modules/basic_garage.lua:371: attempt to index a nil value (field 'rent_vehicles')
stack traceback:
        modules/basic_garage.lua:371: in local 'cb'
        [string "-- begin MySQL module..."]:45: in upvalue 'handler'
        citizen:/scripting/lua/scheduler.lua:175: in function <citizen:/scripting/lua/scheduler.lua:174>
stack traceback:
        [C]: in function 'error'
        citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow'
        citizen:/scripting/lua/scheduler.lua:174: in function <citizen:/scripting/lua/scheduler.lua:138>

I tried to fix this error in many ways, but nothing happens… What could it be?

here is the code string in which the console tells me the error (371):

-- sell vehicle
veh_actions[lang.vehicle.sellTP.title()] = {function(playerID,player,vtype,name)
	if playerID ~= nil then
		vRPclient.getNearestPlayers(player,{15},function(nplayers)
			usrList = ""
			for k,v in pairs(nplayers) do
				usrList = usrList .. "[" .. vRP.getUserId(k) .. "]" .. GetPlayerName(k) .. " | "
			end
			if usrList ~= "" then
				vRP.prompt(player,"Players Nearby: " .. usrList .. "","",function(player,user_id) 
					user_id = user_id
					if user_id ~= nil and user_id ~= "" then 
						local target = vRP.getUserSource(tonumber(user_id))
						if target ~= nil then
							vRP.prompt(player,"Price $: ","",function(player,amount)
								if (tonumber(amount)) then
									MySQL.query("vRP/get_vehicle", {user_id = user_id, vehicle = name}, function(pvehicle, affected)
										if #pvehicle > 0 then
											vRPclient.notify(player,{"~r~The player already has this vehicle type."})
										else
											local tmpdata = vRP.getUserTmpTable(playerID)
											if tmpdata.rent_vehicles[name] == true then -- <================== STRING 371 
												vRPclient.notify(player,{"~r~You cannot sell a rented vehicle!"})
												return
											else
												vRP.request(target,GetPlayerName(player).." wants to sell: " ..name.. " Price: $"..amount, 10, function(target,ok)
													if ok then
														local pID = vRP.getUserId(target)
														local money = vRP.getMoney(pID)
														if (tonumber(money) >= tonumber(amount)) then
															vRPclient.despawnGarageVehicle(player,{vtype,15}) 
															vRP.getUserIdentity(pID, function(identity)
																MySQL.execute("vRP/sell_vehicle_player", {user_id = user_id, registration = "P "..identity.registration, oldUser = playerID, vehicle = name}) 
															end)
															vRP.giveMoney(playerID, amount)
															vRP.setMoney(pID,money-amount)
															vRPclient.notify(player,{"~g~You have successfully sold the vehicle to ".. GetPlayerName(target).." for $"..amount.."!"})
															vRPclient.notify(target,{"~g~"..GetPlayerName(player).." has successfully sold you the car for $"..amount.."!"})
														else
															vRPclient.notify(player,{"~r~".. GetPlayerName(target).." doesn't have enough money!"})
															vRPclient.notify(target,{"~r~You don't have enough money!"})
														end
													else
														vRPclient.notify(player,{"~r~"..GetPlayerName(target).." has refused to buy the car."})
														vRPclient.notify(target,{"~r~You have refused to buy "..GetPlayerName(player).."'s car."})
													end
												end)
											end
											vRP.closeMenu(player)
										end
									end) 
								else
									vRPclient.notify(player,{"~r~The price of the car has to be a number."})
								end
							end)
						else
							vRPclient.notify(player,{"~r~That ID seems invalid."})
						end
					else
						vRPclient.notify(player,{"~r~No player ID selected."})
					end
				end)
			else
				vRPclient.notify(player,{"~r~No player nearby."})
			end
		end)
	end
end, lang.vehicle.sellTP.description()}

in what file is this codes line?

Have same problem. did you fix it yet ? :no_mouth:

How did you solve this problem?

can you help me ? my error error parsing script @ vrp_garages / client.lua in resource vrp_garages: @ vrp_garages / client / lua25: unexpected symbol near ‘[’

– VARIAVEIS ----------------------------------------------------------------------------------------------------------------------------------------- local workgarage = “myVehicles” local vehicle = {} local vehblips = {} local pointspawn = 1 ----------------------------------------------------------------------------------------------------------------------------------------- – SPAWN ----------------------------------------------------------------------------------------------------------------------------------------- local spawn = {} [1] = { [‘x’] = 55.43, [‘y’] = -876.19, [‘z’] = 30.66, [‘name’] = “Garagem”, [1] = { [‘x’] = 50.66, [‘y’] = -873.02, [‘z’] = 30.45, [‘h’] = 159.65 }, [2] = { [‘x’] = 47.34, [‘y’] = -871.81, [‘z’] = 30.45, [‘h’] = 159.65 }, [3] = { [‘x’] = 44.17, [‘y’] = -870.50, [‘z’] = 30.45, [‘h’] = 159.65 } }, [2] = { [‘x’] = 596.40, [‘y’] = 90.65, [‘z’] = 93.12, [‘name’] = “Garagem”, [1] = { [‘x’] = 599.38, [‘y’] = 98.16, [‘z’] = 92.06, [‘h’] = 249.86 }, [2] = { [‘x’] = 600.74, [‘y’] = 101.16, [‘z’] = 92.06, [‘h’] = 249.86 } }, [3] = { [‘x’] = -340.76, [‘y’] = 265.97, [‘z’] = 85.67, [‘name’] = “Garagem”, [1] = { [‘x’] = -329.74, [‘y’] = 274.20, [‘z’] = 85.44, [‘h’] = 93.80 }, [2] = { [‘x’] = -329.88, [‘y’] = 277.63, [‘z’] = 85.43, [‘h’] = 93.80 } }, [4] = { [‘x’] = -2030.01, [‘y’] = -465.97, [‘z’] = 11.60, [‘name’] = “Garagem”, [1] = { [‘x’] = -2024.27, [‘y’] = -471.93, [‘z’] = 11.40, [‘h’] = 140.0 }, [2] = { [‘x’] = -2021.90, [‘y’] = -474.17, [‘z’] = 11.40, [‘h’] = 140.0 } }, [5] = { [‘x’] = -1184.92, [‘y’] = -1510.00, [‘z’] = 4.64, [‘name’] = “Garagem”, [1] = { [‘x’] = -1183.49, [‘y’] = -1495.92, [‘z’] = 4.37, [‘h’] = 125.0 }, [2] = { [‘x’] = -1186.70, [‘y’] = -1490.54, [‘z’] = 4.37, [‘h’] = 125.0 } }, [6] = { [‘x’] = -73.44, [‘y’] = -2004.99, [‘z’] = 18.27, [‘name’] = “Garagem”, [1] = { [‘x’] = -84.96, [‘y’] = -2004.22, [‘z’] = 18.01, [‘h’] = 352.0 } }, [7] = { [‘x’] = 214.02, [‘y’] = -808.44, [‘z’] = 31.01, [‘name’] = “Garagem”, [1] = { [‘x’

@cadu , says it right there mate. Looks like there is an unexpected " [ " at line 25. Have you tried to fix the syntax ?