From 2754bb6607cf3825fa947f9cb7b3fbe5b631a0fa Mon Sep 17 00:00:00 2001 From: Mycroft Date: Sat, 20 Aug 2022 17:34:17 +0100 Subject: [PATCH] fix- Property - StoredVehicles error --- [esx_addons]/esx_property/server/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/[esx_addons]/esx_property/server/main.lua b/[esx_addons]/esx_property/server/main.lua index 1cd1f63a..0dd4d9cf 100644 --- a/[esx_addons]/esx_property/server/main.lua +++ b/[esx_addons]/esx_property/server/main.lua @@ -283,7 +283,7 @@ ESX.RegisterServerCallback("esx_property:sellProperty", function(source, cb, Pro {name = "**Price**", value = ESX.Math.GroupDigits(Price), inline = true}, {name = "**Owner**", value = xPlayer.getName(), inline = true}, {name = "**Furniture Count**", value = tostring(furn), inline = true}, - {name = "**Vehicle Count**", value = tostring(#Properties[PropertyId].garage.StoredVehicles), inline = true}}, 1) + {name = "**Vehicle Count**", value = tostring(Properties[PropertyId].garage.StoredVehicles and #Properties[PropertyId].garage.StoredVehicles or "N/A"), inline = true}}, 1) if Properties[PropertyId].garage.StoredVehicles then Properties[PropertyId].garage.StoredVehicles = {} end