mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-28 17:01:14 +00:00
update var error message name
This commit is contained in:
@@ -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")},
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user