mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 23:46:03 +01:00
refactor(addCommand): send chat suggestions to correct source (#614)
This commit is contained in:
@@ -7,7 +7,7 @@ SetTimeout(1000, function()
|
|||||||
TriggerClientEvent('chat:addSuggestions', -1, commands)
|
TriggerClientEvent('chat:addSuggestions', -1, commands)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
AddEventHandler('playerJoining', function(source)
|
AddEventHandler('playerJoining', function()
|
||||||
TriggerClientEvent('chat:addSuggestions', source, commands)
|
TriggerClientEvent('chat:addSuggestions', source, commands)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ SetTimeout(1000, function()
|
|||||||
TriggerClientEvent('chat:addSuggestions', -1, registeredCommands)
|
TriggerClientEvent('chat:addSuggestions', -1, registeredCommands)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
AddEventHandler('playerJoining', function(source)
|
AddEventHandler('playerJoining', function()
|
||||||
TriggerClientEvent('chat:addSuggestions', source, registeredCommands)
|
TriggerClientEvent('chat:addSuggestions', source, registeredCommands)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user