mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 18:28:52 +00:00
Remove suggestion on command override
This commit is contained in:
@@ -31,6 +31,10 @@ ESX.RegisterCommand = function(name, group, cb, allowConsole, suggestion)
|
||||
|
||||
if ESX.RegisteredCommands[name] then
|
||||
print(('[es_extended] [^3WARNING^7] An command "%s" is already registered, overriding command'):format(name))
|
||||
|
||||
if ESX.RegisteredCommands[name].suggestion then
|
||||
TriggerClientEvent('chat:removeSuggestion', -1, ('/%s'):format(name))
|
||||
end
|
||||
end
|
||||
|
||||
if suggestion then
|
||||
|
||||
Reference in New Issue
Block a user