route.length
is the JavaScript way to find array length.
For Lua, #route
gives the length of the route
.
Lua arrays usually start with index 1. (Check the line, local routeIndex = 0
)
You can read this thread for more info:
route.length
is the JavaScript way to find array length.
For Lua, #route
gives the length of the route
.
Lua arrays usually start with index 1. (Check the line, local routeIndex = 0
)
You can read this thread for more info: