mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 08:13:21 +00:00
Merge pull request #1122 from Gellipapa/main
🚑 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