As in the summary - there is not much to describe, really.
https://community.bistudio.com/wiki/allTurrets
Both variants (with true or false in 2nd argument) of the scripting command do not return [-1] - the driver's turret containing for example a smokescreen in speedboat.