update var error message name

This commit is contained in:
Debian
2025-08-30 13:47:25 +00:00
parent 46b2413820
commit 2ebd4a17b5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ function ESX.RegisterCommand(name, group, cb, allowConsole, suggestion)
local candidate = newArgs[v.name]
local ok, res = pcall(v.isValid, candidate)
if not ok or res ~= true then
error = v.error or TranslateCap("commanderror_argumentmismatch")
error = v.err or TranslateCap("commanderror_argumentmismatch")
end
end
@@ -315,7 +315,7 @@ if not Config.CustomInventory then
{ name = "item", help = TranslateCap("command_giveitem_item"), type = "item" },
{ name = "count", help = TranslateCap("command_giveitem_count"), type = "number", isValid = function (countValue)
return countValue > 0
end, error = TranslateCap("commanderror_argumentmismatch_positive_number", "count")},
end, err = TranslateCap("commanderror_argumentmismatch_positive_number", "count")},
},
}
)