Skip to content

Commit

Permalink
refactor(addCommand): send chat suggestions to correct source (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
minemalox authored Jul 12, 2024
1 parent 7ecd7dc commit 6ffc5af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion imports/__addCommand/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion imports/addCommand/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 6ffc5af

Please sign in to comment.