Skip to content

Commit 9c0652b

Browse files
authored
Merge pull request #1820 from seltonmt012/fix/command-merge-argument
fix(es_extended/server/functions): drop leading space from merge command arguments
2 parents 1be57a0 + d802741 commit 9c0652b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

[core]/es_extended/server/functions.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function ESX.RegisterCommand(name, group, cb, allowConsole, suggestion)
136136
end
137137
local merge = table.concat(args, " ")
138138

139-
newArgs[v.name] = string.sub(merge, length)
139+
newArgs[v.name] = string.sub(merge, length + 1)
140140
elseif v.type == "coordinate" then
141141
local coord = tonumber(args[k]:match("(-?%d+%.?%d*)"))
142142
if not coord then

0 commit comments

Comments
 (0)