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

This commit is contained in:
Malox authored and GitHub committed 2024-07-12 23:51:32 +10:00
1 parent 7ecd7dc21f
commit 6ffc5afd0f
2 files changed
+2 -2

No files matched your search

+1 -1
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)
+1 -1
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)