Fixed restarting scripts no blips, closes #15

This commit is contained in:
ElPumpo
2018-07-03 00:40:18 +02:00
parent fffde49c1c
commit 148274cee5
2 changed files with 22 additions and 31 deletions
+3 -5
View File
@@ -159,7 +159,9 @@ function LoadSql()
roomMenu = roomMenu,
price = properties[i].price
})
end
end
TriggerClientEvent('esx_property:broadcastProperties', -1, Config.Properties)
end)
end
@@ -415,10 +417,6 @@ AddEventHandler('esx_property:putItem', function(owner, type, item, count)
end)
ESX.RegisterServerCallback('esx_property:getProperties', function(source, cb)
cb(Config.Properties)
end)
ESX.RegisterServerCallback('esx_property:getOwnedProperties', function(source, cb)
local xPlayer = ESX.GetPlayerFromId(source)