From bbc77613f031ee6cde68a5afc507aa177155f230 Mon Sep 17 00:00:00 2001 From: blattersturm Date: Mon, 21 Oct 2019 15:05:43 +0200 Subject: [PATCH] rconlog: check for host id --- resources/[system]/rconlog/rconlog_server.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/[system]/rconlog/rconlog_server.lua b/resources/[system]/rconlog/rconlog_server.lua index 75b050c..178a9fc 100644 --- a/resources/[system]/rconlog/rconlog_server.lua +++ b/resources/[system]/rconlog/rconlog_server.lua @@ -9,7 +9,9 @@ AddEventHandler('rlPlayerActivated', function() names[source] = { name = GetPlayerName(source), id = source } - TriggerClientEvent('rlUpdateNames', GetHostId()) + if GetHostId() then + TriggerClientEvent('rlUpdateNames', GetHostId()) + end end) RegisterServerEvent('rlUpdateNamesResult')