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')