1
0
mirror of https://github.com/citizenfx/cfx-server-data.git synced 2025-01-06 21:02:57 +08:00

rconlog: check for host id

This commit is contained in:
blattersturm 2019-10-21 15:05:43 +02:00
parent 54f75bca86
commit bbc77613f0

View File

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