refactor(addCommand): send chat suggestions to correct source (#614)

This commit is contained in:
Malox
2024-07-12 15:51:32 +02:00
committed by GitHub
parent 7ecd7dc21f
commit 6ffc5afd0f
2 changed files with 2 additions and 2 deletions

View File

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

View File

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