Fixed broken script and last_property being empty instead of nil, closes #33

This commit is contained in:
ElPumpo
2018-07-04 18:14:44 +02:00
parent 148274cee5
commit 177791d472
4 changed files with 43 additions and 22 deletions
+7 -3
View File
@@ -159,12 +159,16 @@ function LoadSql()
roomMenu = roomMenu,
price = properties[i].price
})
end
TriggerClientEvent('esx_property:broadcastProperties', -1, Config.Properties)
end
TriggerClientEvent('esx_property:sendProperties', -1, Config.Properties)
end)
end
ESX.RegisterServerCallback('esx_property:getProperties', function(source, cb)
cb(Config.Properties)
end)
AddEventHandler('esx_ownedproperty:getOwnedProperties', function(cb)
MySQL.Async.fetchAll(