mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 20:01:34 +00:00
🚑 fix register commands handle optional args
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user