mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 03:01:31 +00:00
minor change: add support for skipping validation of single command arguments
This commit is contained in:
@@ -35,7 +35,7 @@ ESX.RegisterCommand({'cardel', 'dv'}, 'admin', function(xPlayer, args, showError
|
||||
end
|
||||
end
|
||||
end, false, {help = _U('command_cardel'), validate = false, arguments = {
|
||||
{name = 'radius',validate = false, help = _U('command_cardel_radius'), type = 'string'}
|
||||
{name = 'radius',validate = false, help = _U('command_cardel_radius'), type = 'number'}
|
||||
}})
|
||||
|
||||
ESX.RegisterCommand('setaccountmoney', 'admin', function(xPlayer, args, showError)
|
||||
|
||||
@@ -112,6 +112,10 @@ function ESX.RegisterCommand(name, group, cb, allowConsole, suggestion)
|
||||
newArgs[v.name] = args[k]
|
||||
end
|
||||
end
|
||||
|
||||
if v.validate ~= false then
|
||||
error = nil
|
||||
end
|
||||
|
||||
if error then break end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user