mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-01 10:48:52 +00:00
d80274187c
The merge argument type computes the length of the preceding arguments plus their separators, then passes that value straight to string.sub. Lua strings are 1-indexed, so the merged text actually starts one character later and the separating space ends up at the front of the value. Tested with a command whose merge argument sits at position 1, 2 and 3: positions 2 and 3 returned " def ghi" and " ccc ddd", now they return "def ghi" and "ccc ddd". Position 1 is unaffected because string.sub clamps index 0 to 1.