fix- Property - StoredVehicles error

This commit is contained in:
Mycroft
2022-08-20 17:34:17 +01:00
parent f891d682e4
commit 2754bb6607
+1 -1
View File
@@ -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