diff --git a/resources/[system]/sessionmanager/server/host_lock.lua b/resources/[system]/sessionmanager/server/host_lock.lua index 1a71da4..5121404 100644 --- a/resources/[system]/sessionmanager/server/host_lock.lua +++ b/resources/[system]/sessionmanager/server/host_lock.lua @@ -22,7 +22,7 @@ AddEventHandler('hostingSession', function() end -- if the current host was last contacted less than a second ago - if GetHostId() >= 1 then + if GetHostId() then if GetPlayerLastMsg(GetHostId()) < 1000 then TriggerClientEvent('sessionHostResult', source, 'conflict')