diff --git a/imports/__addCommand/server.lua b/imports/__addCommand/server.lua index 8f4d0c4ee..4fc32df63 100644 --- a/imports/__addCommand/server.lua +++ b/imports/__addCommand/server.lua @@ -7,7 +7,7 @@ SetTimeout(1000, function() TriggerClientEvent('chat:addSuggestions', -1, commands) end) -AddEventHandler('playerJoining', function(source) +AddEventHandler('playerJoining', function() TriggerClientEvent('chat:addSuggestions', source, commands) end) diff --git a/imports/addCommand/server.lua b/imports/addCommand/server.lua index 3144417a5..da5f90e6a 100644 --- a/imports/addCommand/server.lua +++ b/imports/addCommand/server.lua @@ -18,7 +18,7 @@ SetTimeout(1000, function() TriggerClientEvent('chat:addSuggestions', -1, registeredCommands) end) -AddEventHandler('playerJoining', function(source) +AddEventHandler('playerJoining', function() TriggerClientEvent('chat:addSuggestions', source, registeredCommands) end)