October 26, 20223 yr Hi, does anyone know LVar for the switch that turns the PWS from OFF to AUTO? There seems to be a variable as FS2Crew can change the value. Thanks Stefan Liebe Edited October 26, 20223 yr by Stefan01 regards Stefan Liebe
October 26, 20223 yr Author Sorry if I have troubled the forum. I have meanwhile found the answer. The following function is to switch the PWS switch. Cheers Stefan function FNX_PED_RDR_PWS_off() ipc.writeLvar("L:S_WR_PRED_WS", 0) DspShow('PWS', 'off') end function FNX_PED_RDR_PWS_auto() ipc.writeLvar("L:S_WR_PRED_WS", 1) DspShow('PWS', 'auto') end function FNX_PED_RDR_PWS_toggle() local pos = ipc.readLvar("L:S_WR_PRED_WS") if pos == nil then return end if pos == 0 then FNX_PED_RDR_PWS_auto() else FNX_PED_RDR_PWS_off() end end regards Stefan Liebe
Archived
This topic is now archived and is closed to further replies.