There is a command "isIRLaserOn" which works and let you know if your weapon's laser is on or off. But both actions:
player action ["IRLaserOn", player];
player action ["IRLaserOff", player];
Are broken. But...
player action ["GunLightOn", player];
player action ["GunLighOff", player];
are working!
EDIT: command to check gunlight is isFlashlightOn