fix(es_extended): text color formatting in warning message

added ^0 to ensure proper color reset at the end of the string in console output for command warnings
This commit is contained in:
iSentrie
2025-05-23 19:43:37 +03:00
committed by GitHub
parent d948b1b439
commit 62701bd4ec
+1 -1
View File
@@ -62,7 +62,7 @@ function ESX.RegisterCommand(name, group, cb, allowConsole, suggestion)
local command = Core.RegisteredCommands[name]
if not command.allowConsole and playerId == 0 then
print(("[^3WARNING^7] ^5%s"):format(TranslateCap("commanderror_console")))
print(("[^3WARNING^7] ^5%s^0"):format(TranslateCap("commanderror_console")))
else
local xPlayer, error = ESX.Players[playerId], nil