I decided to dive into the world of rotations.
I know this might be incomplete and even incorrect:
function openCapo()
local theVeh = getPedOccupiedVehicle(localPlayer)
local value1 = guiScrollBarGetScrollPosition(caposcroll)
if theVeh and value1 then
setVehicleComponentRotation (theVeh,...