mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user