From 8995284b954a0c4e8c2307ce2e3caadd27d29529 Mon Sep 17 00:00:00 2001 From: David Larsson Date: Sat, 3 Mar 2018 06:29:18 +0100 Subject: [PATCH] Possibly causing crashed due to rented not exist --- server/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/main.lua b/server/main.lua index 157da815..2bd2e851 100644 --- a/server/main.lua +++ b/server/main.lua @@ -167,7 +167,7 @@ AddEventHandler('esx_ownedproperty:getOwnedProperties', function(cb) id = result[i].id, name = result[i].name, price = result[i].price, - rented = (rented == 1 and true or false), + rented = (result[i].rented == 1 and true or false), owner = result[i].owner, }) end