fix(es_extended/server/functions.lua): fixed mistyped variable

This commit is contained in:
KeeganAI
2024-05-26 18:16:44 +02:00
committed by GitHub
parent 1596816465
commit 93a4894ecc
+3 -3
View File
@@ -106,13 +106,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