diff --git a/[core]/es_extended/server/functions.lua b/[core]/es_extended/server/functions.lua index 4f092df9..0c9da3e2 100644 --- a/[core]/es_extended/server/functions.lua +++ b/[core]/es_extended/server/functions.lua @@ -124,13 +124,13 @@ function ESX.RegisterCommand(name, group, cb, allowConsole, suggestion) elseif v.type == "any" then newArgs[v.name] = args[k] elseif v.type == "merge" then - local lenght = 0 + local length = 0 for i = 1, k - 1 do - lenght = lenght + string.len(args[i]) + 1 + length = length + string.len(args[i]) + 1 end local merge = table.concat(args, " ") - newArgs[v.name] = string.sub(merge, lenght) + newArgs[v.name] = string.sub(merge, length) elseif v.type == "coordinate" then local coord = tonumber(args[k]:match("(-?%d+%.?%d*)")) if not coord then