General > Developers Corner
Need some help with a ULX LUA command.
JamminR:
Pretty sure that wouldn't work. My more advanced fellow coders around here coiuld provide more.
But, as of when I posted, you're passing the function a single player object at target.
Not a table of players. Though the object holds more about the player kind of like a table..it's not a table the way we're used to.
Also, you're using Ipairs, i is for indexed...that table wouldn't be indexed. You'd want pairs, if you could use either one in that case.
An Error Has Occurred!
array_keys(): Argument #1 ($array) must be of type array, null given
[0] Board index
Go to full version