Hello, i’m using esx_boats on my server and all works fine but when i chose “yes” in the buy menu nothing happens. I’m using es_extended legacy
If anyone have any idea or any fix to this it will be very helpful!! and sorry for my bad english
I got this error in console:

Line 49 in esx_boat/client/main.lua → local props = ESX.Game.GetVehicleProperties(vehicle)

	ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'boat_shop', {
		title    = _U('boat_shop'),
		align    = 'top-left',
		elements = elements
	}, function (data, menu)
		ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'boat_shop_confirm', {
			title    = _U('boat_shop_confirm', data.current.name, ESX.Math.GroupDigits(data.current.price)),
			align    = 'top-left',
			elements = {
				{label = _U('confirm_no'), value = 'no'},
				{label = _U('confirm_yes'), value = 'yes'}
		}}, function (data2, menu2)
			if data2.current.value == 'yes' then
				local plate = exports['esx_vehicleshop']:GeneratePlate()
				local vehicle = GetVehiclePedIsIn(playerPed, false)
				local props = ESX.Game.GetVehicleProperties(vehicle)
				props.plate = plate

Line 626 in esx_extended/client/functions.lua → for tyre,idx in pairs(TyresIndex[numWheels]) do

		for tyre,idx in pairs(TyresIndex[numWheels]) do
				if IsVehicleTyreBurst(vehicle, idx, false) then
						tyreBurst[tostring(idx)] = true
				else
						tyreBurst[tostring(idx)] = false
				end
		end

		for windowId = 0, 7 do -- 13
				if not IsVehicleWindowIntact(vehicle, windowId) then 
						windowsBroken[tostring(windowId)] = true
				else
						windowsBroken[tostring(windowId)] = false
				end
		end

		for doorsId = 0, GetNumberOfVehicleDoors(vehicle) do
				if IsVehicleDoorDamaged(vehicle, doorsId) then 
						doorsBroken[tostring(doorsId)] = true
				else
						doorsBroken[tostring(doorsId)] = false
				end
		end

Same Error

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.