🚑 fix register commands handle optional args

This commit is contained in:
Gellipapa
2023-07-23 19:04:07 +02:00
parent 2c5b5c92d8
commit c995a29288
+1 -1
View File
@@ -117,7 +117,7 @@ function ESX.RegisterCommand(name, group, cb, allowConsole, suggestion)
end
--backwards compatibility
if not v.validate and not v.type then
if v.validate ~= nil and not v.validate then
error = nil
end