From 6ffc5afd0f5a47ccedb0b1e6b6b36d08ad5c62f4 Mon Sep 17 00:00:00 2001 From: Malox <55745413+minemalox@users.noreply.github.com> Date: Fri, 12 Jul 2024 15:51:32 +0200 Subject: [PATCH] refactor(addCommand): send chat suggestions to correct source (#614) --- imports/__addCommand/server.lua | 2 +- imports/addCommand/server.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/imports/__addCommand/server.lua b/imports/__addCommand/server.lua index 8f4d0c4..4fc32df 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 3144417..da5f90e 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)