{"name":"lnbSetColor","operator":null,"title":"lnbSetColor","type":"command","url":"https://community.bistudio.com/wiki/lnbSetColor","revid":377345,"updated":"2026-01-02T06:40:01Z","groups":["GUI Control - ListNBox"],"status":"ok","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":"local","effect":"local","server_exec":false},"exec":null,"description":"Sets the color of the item with the given position of the 2D listbox. Color is in format Color (RGBA).","syntaxes":[{"syntax":"lnbSetColor [idc, [row, column], color]","since":null,"effect":null,"exec":null,"params":[{"name":"idc","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"idc: Number"},{"name":"row","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"row: Number"},{"name":"column","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"column: Number"},{"name":"color","type":null,"optional":false,"default":null,"description":"Color (RGBA)","types":["Color"],"since":null,"text":"color: Color (RGBA)"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"unary","operator":null,"left":null,"right":{"text":"[idc, [row, column], color]","types":["Array"]}},{"syntax":"ctrl lnbSetColor [[row, column], color]","since":null,"effect":null,"exec":null,"params":[{"name":"ctrl","type":"Control","optional":false,"default":null,"description":null,"types":["Control"],"since":null,"text":"ctrl: Control"},{"name":"row","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"row: Number"},{"name":"column","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"column: Number"},{"name":"color","type":null,"optional":false,"default":null,"description":"Color (RGBA)","types":["Color"],"since":null,"text":"color: Color (RGBA)"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"ctrl","types":["Control"]},"right":{"text":"[[row, column], color]","types":["Array"]}}],"examples":[{"text":"```sqf\n_ctrl lnbSetColor [[0,0], [1,0,0,1]];\n```","code":["_ctrl lnbSetColor [[0,0], [1,0,0,1]];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["lnbAddArray","lnbAddColumn","lnbAddRow","lnbClear","lnbColor","lnbCurSelRow","lnbData","lnbDeleteColumn","lnbDeleteRow","lnbGetColumnsPosition","lnbPicture","lnbSetColumnsPos","lnbSetCurSelRow","lnbSetData","lnbSetPicture","lnbSetText","lnbSetValue","lnbSize","lnbText","lnbValue"],"notes":[],"categories":["Arma 2: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: GUI Control - ListNBox","Introduced with Arma 2 version 1.00","Scripting Commands","Scripting Commands: Local Effect","Take On Helicopters: Scripting Commands"]}