{
"sprtg_lightbar_rack": {
    "information":{
        "authors":"BeamNG",
        "name":"Polizia Light Bar",
        "value":800,
    },
    "slotType" : "sprtg_roofrack_accessory",
    "slots": [
        ["type", "default", "description"],
        ["soundscape_siren","soundscape_siren_25", "Siren Audio"],
    ],
    "soundscape": [
        ["name", "src"],
        //affects siren location because siren soundscape part is loaded after
        {"node:":"f15"},
    ],
    "controller": [
        ["fileName"],
        ["lightbar", {
            "defaultModeIndex": 1,
            "modes": [
                ["name", "config"],
                ["Chase", [
                    ["electric", "value", "duration"],
                        ["lightbar_r", 1, 0.1],
                        ["lightbar_r", 0, 0.07],
                        ["lightbar_r", 1, 0.1],
                        ["lightbar_r", 0, 0.2],

                        ["lightbar_l", 0, 0.3],
                        ["lightbar_l", 1, 0.1],
                        ["lightbar_l", 0, 0.07],
                        ["lightbar_l", 1, 0.1],

                        ["flasher_f", 0, 0.05],
                        ["flasher_f", 1, 0.13],
                        ["flasher_f", 0, 0.32],
                        ["flasher_f", 1, 0.15],

                        ["display_police", 1, 0.75],
                        ["display_police", 0, 0.75],

                        ["display_stop", 0, 0.75],
                        ["display_stop", 1, 0.75],

                        ["lightbar_b", 1, 0.1],
                        ["lightbar_b", 0, 0.1],
                        ["lightbar_b", 1, 0.05],
                        ["lightbar_b", 0, 0.05],
                        ["lightbar_b", 1, 0.2],
                        ["lightbar_b", 0, 0.35],

                        ["flashers", 0, 0],

                    ],
                    ]

                    ["Scene", [
                    ["electric", "value", "duration"],
                        ["lightbar_r", 1, 0.1],
                        ["lightbar_r", 0, 0.07],
                        ["lightbar_r", 1, 0.1],
                        ["lightbar_r", 0, 0.2],

                        ["lightbar_l", 0, 0.3],
                        ["lightbar_l", 1, 0.1],
                        ["lightbar_l", 0, 0.07],
                        ["lightbar_l", 1, 0.1],

                        ["flasher_f", 0, 0.0],

                        ["display_police", 1, 0.75],
                        ["display_police", 0, 0.75],

                        ["display_stop", 0, 0.75],
                        ["display_stop", 1, 0.75],

                        ["lightbar_b", 1, 0.1],
                        ["lightbar_b", 0, 0.1],
                        ["lightbar_b", 1, 0.05],
                        ["lightbar_b", 0, 0.05],
                        ["lightbar_b", 1, 0.2],
                        ["lightbar_b", 0, 0.35],

                        ["flashers", 0, 0.1],
                        ["flashers", 1, 0.1],
                        ["flashers", 0, 0.05],
                        ["flashers", 1, 0.05],
                        ["flashers", 0, 0.2],
                        ["flashers", 1, 0.35],
                    ],
                    ],
                    ],
        }],
    ],
    "glowMap":{
            "light_bar_eu_LED_1R":                   {"simpleFunction":"lightbar_r", "off":"policeparts_lights_blue", "on":"policeparts_lights_blue_on"},
            "light_bar_eu_LED_1L":                   {"simpleFunction":"lightbar_l", "off":"policeparts_lights_blue", "on":"policeparts_lights_blue_on"},
            "light_bar_eu_LED_2R":                   {"simpleFunction":"signal_R", "off":"policeparts_lights_orange", "on":"policeparts_lights_orange_on"},
            "light_bar_eu_LED_2L":                   {"simpleFunction":"signal_L", "off":"policeparts_lights_orange", "on":"policeparts_lights_orange_on"},
            "light_bar_eu_LED_3R":                   {"simpleFunction":"signal_R", "off":"policeparts_lights_orange", "on":"policeparts_lights_orange_on"},
            "light_bar_eu_LED_3L":                   {"simpleFunction":"signal_L", "off":"policeparts_lights_orange", "on":"policeparts_lights_orange_on"},
            "light_bar_eu_LED_R":                   {"simpleFunction":"flashers", "off":"policeparts_lights_orange", "on":"policeparts_lights_orange_on"},
            "light_bar_eu_LED_FR":                   {"simpleFunction":"highbeam", "off":"policeparts_lights_white", "on":"policeparts_lights_white_on"},
            "light_bar_eu_LED_FL":                   {"simpleFunction":"flasher_f", "off":"policeparts_lights_blue", "on":"policeparts_lights_blue_on"},
            "generic_flasher_led_L":                   {"simpleFunction":"lightbar_b", "off":"policeparts_lights_blue", "on":"policeparts_lights_blue_on"},
            "generic_flasher_led_R":                   {"simpleFunction":"lightbar_b", "off":"policeparts_lights_blue", "on":"policeparts_lights_blue_on"},

            "light_bar_euro_glass_R":                   {"simpleFunction":"lightbar_r", "off":"policeparts_glass_blue", "on":"policeparts_glass_blue"},
            "light_bar_euro_glass_L":                   {"simpleFunction":"lightbar_l", "off":"policeparts_glass_blue", "on":"policeparts_glass_blue"},

            "display_italian_police":                   {"simpleFunction":"display_police", "off":"invis", "on":"policeparts_display_on"},
            "display_italian_stop":                   {"simpleFunction":"display_stop", "off":"invis", "on":"policeparts_display_on"},
            "display_off":                   {"simpleFunction":{"display_police":0.49,"display_stop":0.49}, "off":"policeparts_display", "on":"invis"},

        },
    "props": [
        ["func"      , "mesh"              , "idRef:", "idX:", "idY:"            , "baseRotation"        , "rotation"                 , "translation"        , "min", "max", "offset", "multiplier"],
        {
            "lightRange":15,
            "lightBrightness": 1,
            "lightColor":{"r":0, "g":0, "b":255, "a":255},
            "flareName":"vehicleBrakeLightFlare",
            "lightCastShadows":false,
            "texSize":64,
            "shadowSoftness":1,
            "flareScale":0.2,
            "cookieName":"/art/special/BNG_light_cookie_lightbar.dds"
        },
        ["lightbar_r"    , "POINTLIGHT"        , "lb2r", "lb2", "lb4r", {"x":-45, "y":-90, "z":-2.5} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.2, "y":0.5, "z":-0.05},"deformGroup":"lightbar_break"}],
        ["lightbar_l"    , "POINTLIGHT"        , "lb2l", "lb2", "lb4l", {"x":135, "y":90, "z":-2.5} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.2, "y":0.5, "z":0.05},"deformGroup":"lightbar_break"}],
        {
            "lightInnerAngle":0,
            "lightOuterAngle":60,
            "lightBrightness":0.6,
            "lightRange":15,
            "lightColor":{"r":255, "g":150, "b":10, "a":255}
            "flareName":"vehicleBrakeLightFlare",
            "lightCastShadows":false,
            "texSize":64,
            "shadowSoftness":1,
            "flareScale":0.0,
            "cookieName":"/art/special/BNG_light_cookie_lightbar.dds"
        },
        //side lights
        ["signal_R"    , "SPOTLIGHT"        , "lb2","lb2r", "lb4", {"x":90, "y":-90, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.98, "y":0.50, "z":0.01},"deformGroup":"lightbar_break"}],
        ["signal_L"    , "SPOTLIGHT"        , "lb2","lb2l", "lb4", {"x":90, "y":-90, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.98, "y":0.50, "z":-0.01},"deformGroup":"lightbar_break"}]
        //rear lights
        ["flashers"    , "SPOTLIGHT"        , "lb2","lb2l", "lb4", {"x":90, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.0, "y":0.80, "z":-0.08},"deformGroup":"lightbar_break"}],
        ["flashers"    , "SPOTLIGHT"        , "lb2","lb2l", "lb4", {"x":90, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.2, "y":0.80, "z":-0.08},"deformGroup":"lightbar_break"}],
        ["flashers"    , "SPOTLIGHT"        , "lb2","lb2r", "lb4", {"x":90, "y":0, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.2, "y":0.80, "z":0.08},"deformGroup":"lightbar_break"}],
        ["flashers"    , "SPOTLIGHT"        , "lb2","lb2l", "lb4", {"x":90, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.5, "y":0.80, "z":-0.08},"deformGroup":"lightbar_break"}],
        ["flashers"    , "SPOTLIGHT"        , "lb2","lb2r", "lb4", {"x":90, "y":0, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.5, "y":0.80, "z":0.08},"deformGroup":"lightbar_break"}],

        ["signal_L"    , "SPOTLIGHT"        , "lb2","lb2l", "lb4", {"x":90, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.8, "y":1.05, "z":-0.015},"deformGroup":"lightbar_break"}],
        ["signal_R"    , "SPOTLIGHT"        , "lb2","lb2r", "lb4", {"x":90, "y":0, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.8, "y":1.05, "z":0.015},"deformGroup":"lightbar_break"}],
        //front lights
        ["signal_L"    , "SPOTLIGHT"        , "lb2","lb2l", "lb4", {"x":90, "y":180, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.8, "y":0.00, "z":-0.015},"deformGroup":"lightbar_break"}],
        ["signal_R"    , "SPOTLIGHT"        , "lb2","lb2r", "lb4", {"x":90, "y":180, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.8, "y":0.00, "z":0.015},"deformGroup":"lightbar_break"}],
        {
            "lightInnerAngle":0,
            "lightOuterAngle":110,
            "lightBrightness":1.0,
            "lightRange":60,
            "flareName":"vehicleBrakeLightFlare",
            "lightColor":{"r":0, "g":0, "b":255, "a":255},
            "lightCastShadows":true,
            "texSize":64,
            "shadowSoftness":1,
            "flareScale":0.0,
            "cookieName":"/art/special/BNG_light_cookie_headlight.dds"
        },
        ["flasher_f"    , "SPOTLIGHT"        , "lb2","lb2l", "lb4", {"x":90, "y":180, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.5, "y":0.20, "z":-0.02},"deformGroup":"lightbar_break"}],
        {
            "lightOuterAngle":70,
            "lightColor":{"r":233, "g":233, "b":255, "a":255},
        },
        ["highbeam"    , "SPOTLIGHT"        , "lb2","lb2r", "lb4", {"x":90, "y":180, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.45, "y":0.20, "z":0.02},"deformGroup":"lightbar_break"}],
        {
            "cookieName":""
        },
    ],
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        ["light_bar_euro_base", ["sprtg_lightbar"], [], {"pos":{"x": 0.0, "y":0.48, "z":1.439}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.15, "y":1.15, "z":1.15}}],
        ["light_bar_euro_mount_hi", ["sprtg_lightbar"], [], {"pos":{"x": 0.0, "y":0.48, "z":1.439}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.1, "y":1.15, "z":1.15}}],
        {"deformGroup":"lightbar_break", "deformMaterialBase":"policeparts_glass_white", "deformMaterialDamaged":"policeparts_glass_white_dmg"},
        ["light_bar_euro_glass_M", ["sprtg_lightbar"], [], {"pos":{"x": 0.0, "y":0.48, "z":1.439}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.15, "y":1.15, "z":1.15}}],
        {"deformGroup":"lightbar_break", "deformMaterialBase":"policeparts_glass_blue", "deformMaterialDamaged":"policeparts_glass_blue_dmg"},
        ["light_bar_euro_glass_R", ["sprtg_lightbar"], [], {"pos":{"x": 0.0, "y":0.48, "z":1.439}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.15, "y":1.15, "z":1.15}}],
        ["light_bar_euro_glass_L", ["sprtg_lightbar"], [], {"pos":{"x": 0.0, "y":0.48, "z":1.439}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.15, "y":1.15, "z":1.15}}],
        {"deformGroup":"lightbar_break", "deformMaterialBase":"policeparts_lights_white", "deformMaterialDamaged":"policeparts_lights_white"},
        ["light_bar_euro_lights", ["sprtg_lightbar"], [], {"pos":{"x": 0.0, "y":0.48, "z":1.439}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.15, "y":1.15, "z":1.15}}],
        {"deformGroup":"lightbar_break", "deformMaterialBase":"policeparts_display", "deformMaterialDamaged":"policeparts_display"},
        ["police_display_italian_off", ["sprtg_lightbar"], [], {"pos":{"x": 0.0, "y":0.54, "z":1.51}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.0, "y":1.0, "z":1.0}}],
        {"deformGroup":"lightbar_break","deformMaterialBase":"invis", "deformMaterialDamaged":"invis"},
        ["police_display_italian_police", ["sprtg_lightbar"], [], {"pos":{"x": 0.0, "y":0.54, "z":1.51}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.0, "y":1.0, "z":1.0}}],
        ["police_display_italian_stop", ["sprtg_lightbar"], [], {"pos":{"x": 0.0, "y":0.54, "z":1.51}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.0, "y":1.0, "z":1.0}}],

        {"deformGroup":"", "deformMaterialBase":"", "deformMaterialDamaged":""},
    ],
     "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"group":"sprtg_lightbar"},
         {"selfCollision":true},
         {"collision":true},
         {"nodeWeight":0.76},
         {"frictionCoef":0.7},
         {"nodeMaterial":"|NM_METAL"},
         ["lb1", 0.0, 0.40, 1.60],
         ["lb2", 0.0, 0.38, 1.47],
         ["lb3", 0.0, 0.56, 1.60],
         ["lb4", 0.0, 0.58, 1.47],

         ["lb1l", 0.57, 0.40, 1.60],
         ["lb2l", 0.59, 0.38, 1.46],
         ["lb3l", 0.57, 0.56, 1.60],
         ["lb4l", 0.59, 0.58, 1.46],

         ["lb1r", -0.57, 0.40, 1.60],
         ["lb2r", -0.59, 0.38, 1.46],
         ["lb3r", -0.57, 0.56, 1.60],
         ["lb4r", -0.59, 0.58, 1.46],
         {"group":""},
    ],

    "beams": [
          ["id1:", "id2:"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":601000,"beamDamp":60},
          {"beamDeform":20000,"beamStrength":"FLT_MAX"},
          //Main shape
          {"deformLimitExpansion":1.2},
          ["lb1","lb2"],
          ["lb2","lb3"],
          ["lb3","lb4"],
          ["lb4","lb1"],
          ["lb1","lb3"],
          ["lb2","lb4"],

          ["lb1l","lb2l"],
          ["lb2l","lb3l"],
          ["lb3l","lb4l"],
          ["lb4l","lb1l"],
          ["lb1l","lb3l"],
          ["lb2l","lb4l"],

          ["lb1r","lb2r"],
          ["lb2r","lb3r"],
          ["lb3r","lb4r"],
          ["lb4r","lb1r"],
          ["lb1r","lb3r"],
          ["lb2r","lb4r"],

          ["lb1r","lb1"],
          ["lb2r","lb2"],
          ["lb3r","lb3"],
          ["lb4r","lb4"],

          ["lb1l","lb1"],
          ["lb2l","lb2"],
          ["lb3l","lb3"],
          ["lb4l","lb4"],

          //Center to left cross-beams
          {"deformLimitExpansion":""},
          ["lb4l","lb3"],
          ["lb3l","lb4"],
          ["lb3","lb1l"],
          ["lb3l","lb1"],
          ["lb1","lb2l"],
          ["lb2","lb1l"],
          ["lb2l","lb4"],
          ["lb4l","lb2"],

          ["lb4l","lb1"],
          ["lb2l","lb3"],
          ["lb4","lb1l"],
          ["lb2","lb3l"],

          //Center to right cross-beams
          ["lb4r","lb3"],
          ["lb3r","lb4"],
          ["lb3","lb1r"],
          ["lb3r","lb1"],
          ["lb1","lb2r"],
          ["lb2","lb1r"],
          ["lb2r","lb4"],
          ["lb4r","lb2"],

          ["lb4r","lb1"],
          ["lb2r","lb3"],
          ["lb4","lb1r"],
          ["lb2","lb3r"],

          //To body
          {"beamSpring":201000,"beamDamp":60},
          {"beamDeform":4000,"beamStrength":8000},
          {"breakGroup":"lightbar_break"},
          {"deformGroup":"lightbar_L"},
          ["lb4","rf2"],
          //["lb4","rf3"],
          ["lb3","rf2"],
          //["lb3","rf3"],
          //["lb2","rf2"],
          ["lb2","rf3"],
          //["lb1","rf2"],
          ["lb1","rf3"],
          //
          ["lb4l","rf2l"],
          ["lb4l","rf3l"],
          ["lb3l","rf2l"],
          ["lb3l","rf3l"],
          ["lb2l","rf2l"],
          ["lb2l","rf3l"],
          ["lb1l","rf2l"],
          ["lb1l","rf3l"],
          //
          ["lb4","rf2l"],
          ["lb4","rf3l"],
          ["lb3","rf2l"],
          ["lb3","rf3l"],
          ["lb2","rf2l"],
          ["lb2","rf3l"],
          ["lb1","rf2l"],
          ["lb1","rf3l"],
          //
          ["lb4l","rf2"],
          //["lb4l","rf3"],
          ["lb3l","rf2"],
          //["lb3l","rf3"],
          //["lb2l","rf2"],
          ["lb2l","rf3"],
          //["lb1l","rf2"],
          ["lb1l","rf3"],

          {"deformGroup":"lightbar_break"},
          {"breakGroup":"lightbar_R"},
          //["lb4","rf2"],
          ["lb4","rf3"],
          //["lb3","rf2"],
          ["lb3","rf3"],
          ["lb2","rf2"],
          //["lb2","rf3"],
          ["lb1","rf2"],
          //["lb1","rf3"],
          //
          ["lb4r","rf2l"],
          ["lb4r","rf3r"],
          ["lb3r","rf2r"],
          ["lb3r","rf3r"],
          ["lb2r","rf2r"],
          ["lb2r","rf3r"],
          ["lb1r","rf2r"],
          ["lb1r","rf3r"],
          //
          ["lb4","rf2r"],
          ["lb4","rf3r"],
          ["lb3","rf2r"],
          ["lb3","rf3r"],
          ["lb2","rf2r"],
          ["lb2","rf3r"],
          ["lb1","rf2r"],
          ["lb1","rf3r"],
          //
          ["lb4r","rf2"],
          //["lb4r","rf3"],
          ["lb3r","rf2"],
          //["lb3r","rf3"],
          //["lb2r","rf2"],
          ["lb2r","rf3"],
          //["lb1r","rf2"],
          ["lb1r","rf3"],
          {"breakGroup":""},
          {"deformGroup":""},
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"deformLimitExpansion":1.2},
    ],
    "quads": [
            ["id1:","id2:","id3:","id4:"],
            {"group":"sprtg_lightbar"},
            {"dragCoef":10},
            ["lb3l","lb4l","lb4","lb3"],
            ["lb1l","lb3l","lb3","lb1"],
            ["lb1l","lb2l","lb4l","lb3l"],
            ["lb1","lb2","lb2l","lb1l"],
            ["lb4l","lb2l","lb2","lb4"],

            ["lb3","lb4","lb4r","lb3r"],
            ["lb1","lb3","lb3r","lb1r"],
            ["lb3r","lb4r","lb2r","lb1r"],
            ["lb1r","lb2r","lb2","lb1"],
            ["lb4","lb2","lb2r","lb4r"],
            {"group":""}
    ]
},
"sprtg_lightbar": {
    "information":{
        "authors":"BeamNG",
        "name":"Polizia Light Bar",
        "value":800,
    },
    "slotType" : "sprtg_roof_accessory",
    "slots": [
        ["type", "default", "description"],
        ["soundscape_siren","soundscape_siren_25", "Siren Audio"],
    ],
    "soundscape": [
        ["name", "src"],
        //affects siren location because siren soundscape part is loaded after
        {"node:":"f15"},
    ],
    "controller": [
        ["fileName"],
        ["lightbar", {
            "defaultModeIndex": 1,
            "modes": [
                ["name", "config"],
                ["Chase", [
                    ["electric", "value", "duration"],
                        ["lightbar_r", 1, 0.1],
                        ["lightbar_r", 0, 0.07],
                        ["lightbar_r", 1, 0.1],
                        ["lightbar_r", 0, 0.2],

                        ["lightbar_l", 0, 0.3],
                        ["lightbar_l", 1, 0.1],
                        ["lightbar_l", 0, 0.07],
                        ["lightbar_l", 1, 0.1],

                        ["flasher_f", 0, 0.05],
                        ["flasher_f", 1, 0.13],
                        ["flasher_f", 0, 0.32],
                        ["flasher_f", 1, 0.15],

                        ["display_police", 1, 0.75],
                        ["display_police", 0, 0.75],

                        ["display_stop", 0, 0.75],
                        ["display_stop", 1, 0.75],

                        ["lightbar_b", 1, 0.1],
                        ["lightbar_b", 0, 0.1],
                        ["lightbar_b", 1, 0.05],
                        ["lightbar_b", 0, 0.05],
                        ["lightbar_b", 1, 0.2],
                        ["lightbar_b", 0, 0.35],

                        ["flashers", 0, 0],

                    ],
                    ]

                    ["Scene", [
                    ["electric", "value", "duration"],
                        ["lightbar_r", 1, 0.1],
                        ["lightbar_r", 0, 0.07],
                        ["lightbar_r", 1, 0.1],
                        ["lightbar_r", 0, 0.2],

                        ["lightbar_l", 0, 0.3],
                        ["lightbar_l", 1, 0.1],
                        ["lightbar_l", 0, 0.07],
                        ["lightbar_l", 1, 0.1],

                        ["flasher_f", 0, 0.0],

                        ["display_police", 1, 0.75],
                        ["display_police", 0, 0.75],

                        ["display_stop", 0, 0.75],
                        ["display_stop", 1, 0.75],

                        ["lightbar_b", 1, 0.1],
                        ["lightbar_b", 0, 0.1],
                        ["lightbar_b", 1, 0.05],
                        ["lightbar_b", 0, 0.05],
                        ["lightbar_b", 1, 0.2],
                        ["lightbar_b", 0, 0.35],

                        ["flashers", 0, 0.1],
                        ["flashers", 1, 0.1],
                        ["flashers", 0, 0.05],
                        ["flashers", 1, 0.05],
                        ["flashers", 0, 0.2],
                        ["flashers", 1, 0.35],
                    ],
                    ],
                    ],
        }],
    ],
    "glowMap":{
            "light_bar_eu_LED_1R":                   {"simpleFunction":"lightbar_r", "off":"policeparts_lights_blue", "on":"policeparts_lights_blue_on"},
            "light_bar_eu_LED_1L":                   {"simpleFunction":"lightbar_l", "off":"policeparts_lights_blue", "on":"policeparts_lights_blue_on"},
            "light_bar_eu_LED_2R":                   {"simpleFunction":"signal_R", "off":"policeparts_lights_orange", "on":"policeparts_lights_orange_on"},
            "light_bar_eu_LED_2L":                   {"simpleFunction":"signal_L", "off":"policeparts_lights_orange", "on":"policeparts_lights_orange_on"},
            "light_bar_eu_LED_3R":                   {"simpleFunction":"signal_R", "off":"policeparts_lights_orange", "on":"policeparts_lights_orange_on"},
            "light_bar_eu_LED_3L":                   {"simpleFunction":"signal_L", "off":"policeparts_lights_orange", "on":"policeparts_lights_orange_on"},
            "light_bar_eu_LED_R":                   {"simpleFunction":"flashers", "off":"policeparts_lights_orange", "on":"policeparts_lights_orange_on"},
            "light_bar_eu_LED_FR":                   {"simpleFunction":"highbeam", "off":"policeparts_lights_white", "on":"policeparts_lights_white_on"},
            "light_bar_eu_LED_FL":                   {"simpleFunction":"flasher_f", "off":"policeparts_lights_blue", "on":"policeparts_lights_blue_on"},
            "generic_flasher_led_L":                   {"simpleFunction":"lightbar_b", "off":"policeparts_lights_blue", "on":"policeparts_lights_blue_on"},
            "generic_flasher_led_R":                   {"simpleFunction":"lightbar_b", "off":"policeparts_lights_blue", "on":"policeparts_lights_blue_on"},

            "light_bar_euro_glass_R":                   {"simpleFunction":"lightbar_r", "off":"policeparts_glass_blue", "on":"policeparts_glass_blue"},
            "light_bar_euro_glass_L":                   {"simpleFunction":"lightbar_l", "off":"policeparts_glass_blue", "on":"policeparts_glass_blue"},

            "display_italian_police":                   {"simpleFunction":"display_police", "off":"invis", "on":"policeparts_display_on"},
            "display_italian_stop":                   {"simpleFunction":"display_stop", "off":"invis", "on":"policeparts_display_on"},
            "display_off":                   {"simpleFunction":{"display_police":0.49,"display_stop":0.49}, "off":"policeparts_display", "on":"invis"},

        },
    "props": [
        ["func"      , "mesh"              , "idRef:", "idX:", "idY:"            , "baseRotation"        , "rotation"                 , "translation"        , "min", "max", "offset", "multiplier"],
        {
            "lightRange":15,
            "lightBrightness": 1,
            "lightColor":{"r":0, "g":0, "b":255, "a":255},
            "flareName":"vehicleBrakeLightFlare",
            "lightCastShadows":false,
            "texSize":64,
            "shadowSoftness":1,
            "flareScale":0.2,
            "cookieName":"/art/special/BNG_light_cookie_lightbar.dds"
        },
        ["lightbar_r"    , "POINTLIGHT"        , "lb2r", "lb2", "lb4r", {"x":-45, "y":-90, "z":-2.5} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.2, "y":0.5, "z":-0.05},"deformGroup":"lightbar_break"}],
        ["lightbar_l"    , "POINTLIGHT"        , "lb2l", "lb2", "lb4l", {"x":135, "y":90, "z":-2.5} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.2, "y":0.5, "z":0.05},"deformGroup":"lightbar_break"}],
        {
            "lightInnerAngle":0,
            "lightOuterAngle":60,
            "lightBrightness":0.6,
            "lightRange":15,
            "lightColor":{"r":255, "g":150, "b":10, "a":255}
            "flareName":"vehicleBrakeLightFlare",
            "lightCastShadows":false,
            "texSize":64,
            "shadowSoftness":1,
            "flareScale":0.0,
            "cookieName":"/art/special/BNG_light_cookie_lightbar.dds"
        },
        //side lights
        ["signal_R"    , "SPOTLIGHT"        , "lb2","lb2r", "lb4", {"x":90, "y":-90, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.98, "y":0.50, "z":0.01},"deformGroup":"lightbar_break"}],
        ["signal_L"    , "SPOTLIGHT"        , "lb2","lb2l", "lb4", {"x":90, "y":-90, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.98, "y":0.50, "z":-0.01},"deformGroup":"lightbar_break"}]
        //rear lights
        ["flashers"    , "SPOTLIGHT"        , "lb2","lb2l", "lb4", {"x":90, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.0, "y":0.80, "z":-0.08},"deformGroup":"lightbar_break"}],
        ["flashers"    , "SPOTLIGHT"        , "lb2","lb2l", "lb4", {"x":90, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.2, "y":0.80, "z":-0.08},"deformGroup":"lightbar_break"}],
        ["flashers"    , "SPOTLIGHT"        , "lb2","lb2r", "lb4", {"x":90, "y":0, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.2, "y":0.80, "z":0.08},"deformGroup":"lightbar_break"}],
        ["flashers"    , "SPOTLIGHT"        , "lb2","lb2l", "lb4", {"x":90, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.5, "y":0.80, "z":-0.08},"deformGroup":"lightbar_break"}],
        ["flashers"    , "SPOTLIGHT"        , "lb2","lb2r", "lb4", {"x":90, "y":0, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.5, "y":0.80, "z":0.08},"deformGroup":"lightbar_break"}],

        ["signal_L"    , "SPOTLIGHT"        , "lb2","lb2l", "lb4", {"x":90, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.8, "y":1.05, "z":-0.015},"deformGroup":"lightbar_break"}],
        ["signal_R"    , "SPOTLIGHT"        , "lb2","lb2r", "lb4", {"x":90, "y":0, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.8, "y":1.05, "z":0.015},"deformGroup":"lightbar_break"}],
        //front lights
        ["signal_L"    , "SPOTLIGHT"        , "lb2","lb2l", "lb4", {"x":90, "y":180, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.8, "y":0.00, "z":-0.015},"deformGroup":"lightbar_break"}],
        ["signal_R"    , "SPOTLIGHT"        , "lb2","lb2r", "lb4", {"x":90, "y":180, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.8, "y":0.00, "z":0.015},"deformGroup":"lightbar_break"}],
        {
            "lightInnerAngle":0,
            "lightOuterAngle":110,
            "lightBrightness":1.0,
            "lightRange":60,
            "flareName":"vehicleBrakeLightFlare",
            "lightColor":{"r":0, "g":0, "b":255, "a":255},
            "lightCastShadows":true,
            "texSize":64,
            "shadowSoftness":1,
            "flareScale":0.0,
            "cookieName":"/art/special/BNG_light_cookie_headlight.dds"
        },
        ["flasher_f"    , "SPOTLIGHT"        , "lb2","lb2l", "lb4", {"x":90, "y":180, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.5, "y":0.20, "z":-0.02},"deformGroup":"lightbar_break"}],
        {
            "lightOuterAngle":70,
            "lightColor":{"r":233, "g":233, "b":255, "a":255},
        },
        ["highbeam"    , "SPOTLIGHT"        , "lb2","lb2r", "lb4", {"x":90, "y":180, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.45, "y":0.20, "z":0.02},"deformGroup":"lightbar_break"}],
        {
            "cookieName":""
        },
    ],
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        ["light_bar_euro_base", ["sprtg_lightbar"], [], {"pos":{"x": 0.0, "y":0.48, "z":1.424}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.15, "y":1.15, "z":1.15}}],
        ["light_bar_mount_hi", ["sprtg_lightbar"], [], {"pos":{"x": 0.0, "y":0.46, "z":1.41}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.1, "y":1.15, "z":1.0}}],
        {"deformGroup":"lightbar_break", "deformMaterialBase":"policeparts_glass_white", "deformMaterialDamaged":"policeparts_glass_white_dmg"},
        ["light_bar_euro_glass_M", ["sprtg_lightbar"], [], {"pos":{"x": 0.0, "y":0.48, "z":1.425}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.15, "y":1.15, "z":1.15}}],
        {"deformGroup":"lightbar_break", "deformMaterialBase":"policeparts_glass_blue", "deformMaterialDamaged":"policeparts_glass_blue_dmg"},
        ["light_bar_euro_glass_R", ["sprtg_lightbar"], [], {"pos":{"x": 0.0, "y":0.48, "z":1.425}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.15, "y":1.15, "z":1.15}}],
        ["light_bar_euro_glass_L", ["sprtg_lightbar"], [], {"pos":{"x": 0.0, "y":0.48, "z":1.425}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.15, "y":1.15, "z":1.15}}],
        {"deformGroup":"lightbar_break", "deformMaterialBase":"policeparts_lights_white", "deformMaterialDamaged":"policeparts_lights_white"},
        ["light_bar_euro_lights", ["sprtg_lightbar"], [], {"pos":{"x": 0.0, "y":0.48, "z":1.425}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.15, "y":1.15, "z":1.15}}],
        {"deformGroup":"lightbar_break", "deformMaterialBase":"policeparts_display", "deformMaterialDamaged":"policeparts_display"},
        ["police_display_italian_off", ["sprtg_lightbar"], [], {"pos":{"x": 0.0, "y":0.54, "z":1.50}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.0, "y":1.0, "z":1.0}}],
        {"deformGroup":"lightbar_break","deformMaterialBase":"invis", "deformMaterialDamaged":"invis"},
        ["police_display_italian_police", ["sprtg_lightbar"], [], {"pos":{"x": 0.0, "y":0.54, "z":1.50}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.0, "y":1.0, "z":1.0}}],
        ["police_display_italian_stop", ["sprtg_lightbar"], [], {"pos":{"x": 0.0, "y":0.54, "z":1.50}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.0, "y":1.0, "z":1.0}}],

        {"deformGroup":"", "deformMaterialBase":"", "deformMaterialDamaged":""},
    ],
     "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"group":"sprtg_lightbar"},
         {"selfCollision":true},
         {"collision":true},
         {"nodeWeight":0.76},
         {"frictionCoef":0.7},
         {"nodeMaterial":"|NM_METAL"},
         ["lb1", 0.0, 0.40, 1.58],
         ["lb2", 0.0, 0.38, 1.45],
         ["lb3", 0.0, 0.56, 1.58],
         ["lb4", 0.0, 0.58, 1.45],

         ["lb1l", 0.57, 0.40, 1.58],
         ["lb2l", 0.59, 0.38, 1.44],
         ["lb3l", 0.57, 0.56, 1.58],
         ["lb4l", 0.59, 0.58, 1.44],

         ["lb1r", -0.57, 0.40, 1.58],
         ["lb2r", -0.59, 0.38, 1.44],
         ["lb3r", -0.57, 0.56, 1.58],
         ["lb4r", -0.59, 0.58, 1.44],
         {"group":""},
    ],

    "beams": [
          ["id1:", "id2:"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":601000,"beamDamp":60},
          {"beamDeform":20000,"beamStrength":"FLT_MAX"},
          //Main shape
          {"deformLimitExpansion":1.2},
          ["lb1","lb2"],
          ["lb2","lb3"],
          ["lb3","lb4"],
          ["lb4","lb1"],
          ["lb1","lb3"],
          ["lb2","lb4"],

          ["lb1l","lb2l"],
          ["lb2l","lb3l"],
          ["lb3l","lb4l"],
          ["lb4l","lb1l"],
          ["lb1l","lb3l"],
          ["lb2l","lb4l"],

          ["lb1r","lb2r"],
          ["lb2r","lb3r"],
          ["lb3r","lb4r"],
          ["lb4r","lb1r"],
          ["lb1r","lb3r"],
          ["lb2r","lb4r"],

          ["lb1r","lb1"],
          ["lb2r","lb2"],
          ["lb3r","lb3"],
          ["lb4r","lb4"],

          ["lb1l","lb1"],
          ["lb2l","lb2"],
          ["lb3l","lb3"],
          ["lb4l","lb4"],

          //Center to left cross-beams
          {"deformLimitExpansion":""},
          ["lb4l","lb3"],
          ["lb3l","lb4"],
          ["lb3","lb1l"],
          ["lb3l","lb1"],
          ["lb1","lb2l"],
          ["lb2","lb1l"],
          ["lb2l","lb4"],
          ["lb4l","lb2"],

          ["lb4l","lb1"],
          ["lb2l","lb3"],
          ["lb4","lb1l"],
          ["lb2","lb3l"],

          //Center to right cross-beams
          ["lb4r","lb3"],
          ["lb3r","lb4"],
          ["lb3","lb1r"],
          ["lb3r","lb1"],
          ["lb1","lb2r"],
          ["lb2","lb1r"],
          ["lb2r","lb4"],
          ["lb4r","lb2"],

          ["lb4r","lb1"],
          ["lb2r","lb3"],
          ["lb4","lb1r"],
          ["lb2","lb3r"],

          //To body
          {"beamSpring":201000,"beamDamp":60},
          {"beamDeform":4000,"beamStrength":8000},
          {"breakGroup":"lightbar_break"},
          {"deformGroup":"lightbar_L"},
          ["lb4","rf2"],
          //["lb4","rf3"],
          ["lb3","rf2"],
          //["lb3","rf3"],
          //["lb2","rf2"],
          ["lb2","rf3"],
          //["lb1","rf2"],
          ["lb1","rf3"],
          //
          ["lb4l","rf2l"],
          ["lb4l","rf3l"],
          ["lb3l","rf2l"],
          ["lb3l","rf3l"],
          ["lb2l","rf2l"],
          ["lb2l","rf3l"],
          ["lb1l","rf2l"],
          ["lb1l","rf3l"],
          //
          ["lb4","rf2l"],
          ["lb4","rf3l"],
          ["lb3","rf2l"],
          ["lb3","rf3l"],
          ["lb2","rf2l"],
          ["lb2","rf3l"],
          ["lb1","rf2l"],
          ["lb1","rf3l"],
          //
          ["lb4l","rf2"],
          //["lb4l","rf3"],
          ["lb3l","rf2"],
          //["lb3l","rf3"],
          //["lb2l","rf2"],
          ["lb2l","rf3"],
          //["lb1l","rf2"],
          ["lb1l","rf3"],

          {"deformGroup":"lightbar_break"},
          {"breakGroup":"lightbar_R"},
          //["lb4","rf2"],
          ["lb4","rf3"],
          //["lb3","rf2"],
          ["lb3","rf3"],
          ["lb2","rf2"],
          //["lb2","rf3"],
          ["lb1","rf2"],
          //["lb1","rf3"],
          //
          ["lb4r","rf2l"],
          ["lb4r","rf3r"],
          ["lb3r","rf2r"],
          ["lb3r","rf3r"],
          ["lb2r","rf2r"],
          ["lb2r","rf3r"],
          ["lb1r","rf2r"],
          ["lb1r","rf3r"],
          //
          ["lb4","rf2r"],
          ["lb4","rf3r"],
          ["lb3","rf2r"],
          ["lb3","rf3r"],
          ["lb2","rf2r"],
          ["lb2","rf3r"],
          ["lb1","rf2r"],
          ["lb1","rf3r"],
          //
          ["lb4r","rf2"],
          //["lb4r","rf3"],
          ["lb3r","rf2"],
          //["lb3r","rf3"],
          //["lb2r","rf2"],
          ["lb2r","rf1"],
          //["lb1r","rf2"],
          ["lb1r","rf3"],
          {"breakGroup":""},
          {"deformGroup":""},
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"deformLimitExpansion":1.2},
    ],
    "quads": [
            ["id1:","id2:","id3:","id4:"],
            {"group":"sprtg_lightbar"},
            {"dragCoef":10},
            ["lb3l","lb4l","lb4","lb3"],
            ["lb1l","lb3l","lb3","lb1"],
            ["lb1l","lb2l","lb4l","lb3l"],
            ["lb1","lb2","lb2l","lb1l"],
            ["lb4l","lb2l","lb2","lb4"],

            ["lb3","lb4","lb4r","lb3r"],
            ["lb1","lb3","lb3r","lb1r"],
            ["lb3r","lb4r","lb2r","lb1r"],
            ["lb1r","lb2r","lb2","lb1"],
            ["lb4","lb2","lb2r","lb4r"],
            {"group":""}
    ]
},
"sprtg_modern_lightbar": {
    "information":{
        "authors":"BeamNG",
        "name":"US Light Bar",
        "value":1400,
    },
    "slotType" : ["sprtg_roof_accessory", "sprtg_roofrack_accessory"],
    "slots": [
        ["type", "default", "description"],
        ["lightbar_pattern","lightbar_pattern_police_standard", "Light Bar Flash Pattern", {"coreSlot":true}],
        ["lightbar_color_L","lightbar_color_L_white", "Left Light Bar Glass Color", {"coreSlot":true}],
        ["lightbar_color_R","lightbar_color_R_white", "Right Light Bar Glass Color", {"coreSlot":true}],
        ["lightbar_floodlights","lightbar_floodlights", "Flood Lights", {"nodeMove":{"x":0,"y":0.36,"z":1.406}}],
        ["lightbar_sign","", "LED Sign", {"nodeMove":{"x":0,"y":0.36,"z":1.406}}],
        ["lightbar_antenna","", "Antenna", {"nodeMove":{"x":0,"y":0.36,"z":1.406}}],
        ["sprtg_emergencylights","sprtg_emergencylights_us", "Concealed Flashers"],
        ["soundscape_siren","soundscape_siren_20", "Siren Audio"],
    ],
    "soundscape": [
        ["name", "src"],
        //affects siren location because siren soundscape part is loaded after
        {"node:":"bb2"}
    ],
    "components": {
        "lightbarMaterials": {
          "hasSign":false,
        },
    },
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        ["light_bar_LED_US_body", ["lightbar"], [], {"pos":{"x": 0.0, "y":0.36, "z":1.406}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.15, "y":1.12, "z":1.15}}],
        ["light_bar_mount_hi", ["sprtg_body"], [], {"pos":{"x": 0.0, "y":0.36, "z":1.40}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.15, "y":1.15, "z":1.30}}],
        {"deformGroup":"lightbar_break", "deformMaterialBase":"policeparts_lights_white", "deformMaterialDamaged":"policeparts_lights_white"},
        ["light_bar_LED_US_lights_new", ["lightbar"], [], {"pos":{"x": 0.0, "y":0.36, "z":1.406}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.15, "y":1.12, "z":1.15}}],
        {"deformGroup":"lightbar_break", "deformMaterialBase":"policeparts_glass", "deformMaterialDamaged":"$= $components.lightbarMaterials.glass_L_dmg == nil and 'policeparts_glass_white_dmg' or $components.lightbarMaterials.glass_L_dmg"},
        ["light_bar_LED_US_glass_L", ["lightbar"], [], {"pos":{"x": 0.0, "y":0.36, "z":1.406}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.15, "y":1.15, "z":1.15}}],
        {"deformGroup":"lightbar_break", "deformMaterialBase":"policeparts_glass", "deformMaterialDamaged":"$= $components.lightbarMaterials.glass_R_dmg == nil and 'policeparts_glass_white_dmg' or $components.lightbarMaterials.glass_R_dmg"},
        ["light_bar_LED_US_glass_R", ["lightbar"], [], {"pos":{"x": 0.0, "y":0.36, "z":1.406}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.15, "y":1.15, "z":1.15}}],
        {"deformGroup":""},
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"group":"lightbar"},
         {"selfCollision":true},
         {"collision":true},
         {"nodeWeight":0.76},
         {"frictionCoef":0.7},
         {"nodeMaterial":"|NM_METAL"},
         ["lightbar_1", 0.0, 0.26, 1.54],
         ["lightbar_2", 0.0, 0.26, 1.47],
         ["lightbar_3", 0.0, 0.50, 1.54],
         ["lightbar_4", 0.0, 0.50, 1.47],

         ["lightbar_1l", 0.55, 0.26, 1.54],
         ["lightbar_2l", 0.55, 0.26, 1.47],
         ["lightbar_3l", 0.55, 0.50, 1.54],
         ["lightbar_4l", 0.55, 0.50, 1.47],

         ["lightbar_1r", -0.55, 0.26, 1.54],
         ["lightbar_2r", -0.55, 0.26, 1.47],
         ["lightbar_3r", -0.55, 0.50, 1.54],
         ["lightbar_4r", -0.55, 0.50, 1.47],
         {"group":""}
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":701000,"beamDamp":60},
          {"beamDeform":6000,"beamStrength":"FLT_MAX"},
          //Main shape
          {"deformationTriggerRatio":0.02},
          {"deformGroup":"lightbar_break"},
          ["lightbar_1","lightbar_2"],
          ["lightbar_2","lightbar_3"],
          ["lightbar_3","lightbar_4"],
          ["lightbar_4","lightbar_1"],
          ["lightbar_1","lightbar_3"],
          ["lightbar_2","lightbar_4"],

          ["lightbar_1l","lightbar_2l"],
          ["lightbar_2l","lightbar_3l"],
          ["lightbar_3l","lightbar_4l"],
          ["lightbar_4l","lightbar_1l"],
          ["lightbar_1l","lightbar_3l"],
          ["lightbar_2l","lightbar_4l"],

          ["lightbar_1r","lightbar_2r"],
          ["lightbar_2r","lightbar_3r"],
          ["lightbar_3r","lightbar_4r"],
          ["lightbar_4r","lightbar_1r"],
          ["lightbar_1r","lightbar_3r"],
          ["lightbar_2r","lightbar_4r"],

          ["lightbar_1r","lightbar_1"],
          ["lightbar_2r","lightbar_2"],
          ["lightbar_3r","lightbar_3"],
          ["lightbar_4r","lightbar_4"],

          ["lightbar_1l","lightbar_1"],
          ["lightbar_2l","lightbar_2"],
          ["lightbar_3l","lightbar_3"],
          ["lightbar_4l","lightbar_4"],

          //Center to left cross-beams
          ["lightbar_4l","lightbar_3"],
          ["lightbar_3l","lightbar_4"],
          ["lightbar_3","lightbar_1l"],
          ["lightbar_3l","lightbar_1"],
          ["lightbar_1","lightbar_2l"],
          ["lightbar_2","lightbar_1l"],
          ["lightbar_2l","lightbar_4"],
          ["lightbar_4l","lightbar_2"],

          ["lightbar_4l","lightbar_1"],
          ["lightbar_2l","lightbar_3"],
          ["lightbar_4","lightbar_1l"],
          ["lightbar_2","lightbar_3l"],

          //Center to right cross-beams
          ["lightbar_4r","lightbar_3"],
          ["lightbar_3r","lightbar_4"],
          ["lightbar_3","lightbar_1r"],
          ["lightbar_3r","lightbar_1"],
          ["lightbar_1","lightbar_2r"],
          ["lightbar_2","lightbar_1r"],
          ["lightbar_2r","lightbar_4"],
          ["lightbar_4r","lightbar_2"],

          ["lightbar_4r","lightbar_1"],
          ["lightbar_2r","lightbar_3"],
          ["lightbar_4","lightbar_1r"],
          ["lightbar_2","lightbar_3r"],

          //rigids
          {"beamSpring":301000,"beamDamp":60},
          ["lightbar_1r","lightbar_1l"],
          ["lightbar_2r","lightbar_2l"],
          ["lightbar_3r","lightbar_3l"],
          ["lightbar_4r","lightbar_4l"],

          {"beamSpring":401000,"beamDamp":60},
          {"beamDeform":5000,"beamStrength":12000},
          {"deformationTriggerRatio":0.02},
          //To body
          {"breakGroup":"lightbar"},

          ["lightbar_2l","rf1l"],
          ["lightbar_2l","rf2l"],
          ["lightbar_4l","rf1l"],
          ["lightbar_4l","rf2l"],
          ["lightbar_4l","rf2"],
          ["lightbar_2","rf1l"],
          ["lightbar_2","rf2l"],
          ["lightbar_4","rf1l"],
          ["lightbar_4","rf2l"],

          ["lightbar_1l","rf1l"],
          ["lightbar_1l","rf2l"],
          ["lightbar_1l","rf1"],
          ["lightbar_3l","rf1l"],
          ["lightbar_3l","rf2l"],
          ["lightbar_3l","rf1"],
          ["lightbar_1","rf1l"],
          ["lightbar_1","rf2l"],
          ["lightbar_3","rf1l"],
          ["lightbar_3","rf2l"],

          ["lightbar_2r","rf1r"],
          ["lightbar_2r","rf2r"],
          ["lightbar_4r","rf1r"],
          ["lightbar_4r","rf2r"],
          ["lightbar_4r","rf2"],
          ["lightbar_2","rf1r"],
          ["lightbar_2","rf2r"],
          ["lightbar_4","rf1r"],
          ["lightbar_4","rf2r"],

          ["lightbar_1r","rf1r"],
          ["lightbar_1r","rf2r"],
          ["lightbar_1r","rf1"],
          ["lightbar_3r","rf1r"],
          ["lightbar_3r","rf2r"],
          ["lightbar_3r","rf1"],
          ["lightbar_1","rf1r"],
          ["lightbar_1","rf2r"],
          ["lightbar_3","rf1r"],
          ["lightbar_3","rf2r"],

          {"breakGroup":""},
          {"deformationTriggerRatio":""},
          {"deformGroup":""},
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0}
    ],
    "quads": [
          ["id1:","id2:","id3:","id4:"],
          {"group":"sprtg_lightbar"},
          {"dragCoef":10},
          ["lightbar_3l","lightbar_4l","lightbar_4","lightbar_3"],
          ["lightbar_1l","lightbar_3l","lightbar_3","lightbar_1"],
          ["lightbar_1l","lightbar_2l","lightbar_4l","lightbar_3l"],
          ["lightbar_1","lightbar_2","lightbar_2l","lightbar_1l"],
          ["lightbar_4l","lightbar_2l","lightbar_2","lightbar_4"],

          ["lightbar_3","lightbar_4","lightbar_4r","lightbar_3r"],
          ["lightbar_1","lightbar_3","lightbar_3r","lightbar_1r"],
          ["lightbar_3r","lightbar_4r","lightbar_2r","lightbar_1r"],
          ["lightbar_1r","lightbar_2r","lightbar_2","lightbar_1"],
          ["lightbar_4","lightbar_2","lightbar_2r","lightbar_4r"],
          {"group":""}
    ]
},
"sprtg_roofflasher": {
    "information":{
        "authors":"BeamNG",
        "name":"Blue Roof Flasher",
        "value":800
    },
    "slotType" : "sprtg_lightbar",
    "slots": [
        ["type", "default", "description"],
        ["soundscape_siren","soundscape_siren_25", "Siren Audio"],
        ["sprtg_emergencylights","sprtg_emergencylights_display", "Concealed Flashers"]
    ],
    "soundscape": [
        ["name", "src"],
        //affects siren location because siren soundscape part is loaded after
        {"node:":"f15"},
    ],
    "controller": [
        ["fileName"],
        ["lightbar", {
            "name":"flasher",
            "defaultModeIndex": 1,
            "modes": [
                ["name", "config"],
                ["Chase", [
                    ["electric", "value", "duration"],
                        ["roofflasher", 1, 0.1],
                        ["roofflasher", 0, 0.05],
                        ["roofflasher", 1, 0.1],
                        ["roofflasher", 0, 0.2]
                    ],
                ],
            ],
        }],
    ],
    "glowMap":{
            "mod_beacon_light":                   {"simpleFunction":"roofflasher", "off":"policeparts_lights_blue", "on":"policeparts_lights_blue_on"},
            "mod_beacon_glass":                   {"simpleFunction":"roofflasher", "off":"policeparts_glass_blue", "on":"policeparts_glass_blue"},
        },
    "props": [
        ["func"      , "mesh"              , "idRef:", "idX:", "idY:"            , "baseRotation"        , "rotation"                 , "translation"        , "min", "max", "offset", "multiplier"],
        {
            "lightRange":15,
            "lightBrightness": 1,
            "lightColor":{"r":0, "g":0, "b":255, "a":250},
            "flareName":"vehicleBrakeLightFlare",
            "lightCastShadows":false,
            "texSize":64,
            "shadowSoftness":1,
            "flareScale":0.0,
            "cookieName":"/art/special/BNG_light_cookie_lightbar.dds"
        },
        ["roofflasher"    , "POINTLIGHT"        ,  "bl2r","bl2l","bl1r", {"x":60, "y":90, "z":2.50} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.5, "y":0.5, "z":-0.1},"deformGroup":"beaconlight_break"}],
        ["roofflasher"    , "POINTLIGHT"        ,  "bl2l","bl2r","bl1l", {"x":-60, "y":90, "z":-2.50} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.5, "y":0.5, "z":0.1},"deformGroup":"beaconlight_break"}],
        {
            "lightRange":0,
            "lightBrightness": 1,
            "lightColor":{"r":0, "g":0, "b":255, "a":250},
            "flareName":"vehicleBrakeLightFlare",
            "lightCastShadows":false,
            "texSize":64,
            "shadowSoftness":1,
            "flareScale":0.1,
            "cookieName":"/art/special/BNG_light_cookie_lightbar.dds"
        },
        ["roofflasher"    , "POINTLIGHT"        ,  "bl2r","bl2l","bl1r", {"x":0, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.5, "y":0.5, "z":0.05},"deformGroup":"beaconlight_break"}],
        {
            "cookieName":""
        },

    ],
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        ["mod_beacon_base", ["beaconlight"], [], {"pos":{"x": 0.0, "y":0.5, "z":1.436}, "rot":{"x":-1, "y":0, "z":0}, "scale":{"x":1.12, "y":1.12, "z":1.12}}],
        {"deformGroup":"beaconlight_break", "deformMaterialBase":"policeparts_lights_blue", "deformMaterialDamaged":"policeparts_lights_blue"},
        ["mod_beacon_light", ["beaconlight"], [], {"pos":{"x": 0.0, "y":0.5, "z":1.436}, "rot":{"x":-1, "y":0, "z":0}, "scale":{"x":1.12, "y":1.12, "z":1.12}}],
        {"deformGroup":"beaconlight_break", "deformMaterialBase":"policeparts_glass_blue", "deformMaterialDamaged":"policeparts_glass_blue_dmg"},
        ["mod_beacon_glass", ["beaconlight"], [], {"pos":{"x": 0.0, "y":0.5, "z":1.436}, "rot":{"x":-1, "y":0, "z":0}, "scale":{"x":1.12, "y":1.12, "z":1.12}}],
        {"deformGroup":"", "deformMaterialBase":"", "deformMaterialDamaged":""},
    ],
     "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"selfCollision":true},
         {"collision":true},
         {"nodeWeight":0.741},
         {"frictionCoef":0.7},
         {"group":"beaconlight"},
         {"nodeMaterial":"|NM_METAL"},
         ["bl1l", 0.0867, 0.42, 1.45],
         ["bl2l", 0.0867, 0.58, 1.45],
         ["bl3", 0.0, 0.5, 1.5],
         ["bl1r", -0.0867, 0.42, 1.45],
         ["bl2r", -0.0867, 0.58, 1.45],

    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":292500,"beamDamp":58.5},
          {"beamDeform":7605,"beamStrength":"FLT_MAX"},
          //Main shape
          {"deformGroup":"beaconlight_break"},
          {"deformationTriggerRatio":0.01},
          {"deformLimitExpansion":1.2},
          ["bl1r","bl1l"],
          ["bl2r","bl2l"],
          ["bl1r","bl2r"],
          ["bl1l","bl2l"],
          ["bl1r","bl2l"],
          ["bl1l","bl2r"],
          ["bl1r","bl3"],
          ["bl2r","bl3"],
          ["bl1l","bl3"],
          ["bl2l","bl3"],

          //attach
          {"beamSpring":292500,"beamDamp":58.5},
          {"beamDeform":3042,"beamStrength":3802.5},
          {"deformLimitExpansion":""},
          {"breakGroup":"light_attach"},
          ["bl2r","rf2r"],
          ["bl2l","rf2l"],
          ["bl1r","rf2r"],
          ["bl1l","rf2l"],
          ["bl2r","rf1r"],
          ["bl2l","rf1l"],
          ["bl1r","rf1r"],
          ["bl1l","rf1l"],
          ["bl2r","rf3r"],
          ["bl2l","rf3l"],
          ["bl3","rf2r"],
          ["bl3","rf2l"],
          ["bl2r","rf2r"],
          ["bl2l","rf2l"],
          ["bl1r","rf2r"],
          ["bl1l","rf2l"],
          ["bl3","rf3r"],
          ["bl3","rf3l"],
          ["bl1r","rf5"],
          ["bl1l","rf5"],
          ["bl2r","rf5"],
          ["bl2l","rf5"],
          ["bl3","rf5"],
          {"deformGroup":""},
          {"breakGroup":""},
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],

    "triangles": [
            ["id1:","id2:","id3:"],
            {"group":"beaconlight"},
            {"dragCoef":2.1},
            ["bl3","bl2r","bl1r"],
            ["bl3","bl2l","bl2r"],
            ["bl3","bl1l","bl2l"],
            ["bl3","bl1r","bl1l"],
            ["bl1r","bl2r","bl2l"],
            ["bl1r","bl2l","bl1l"],
    ]
},
"sprtg_roofflasher_amber": {
    "information":{
        "authors":"BeamNG",
        "name":"Amber Roof Flasher",
        "value":800
    },
    "slotType" : "sprtg_lightbar",
    "controller": [
        ["fileName"],
        ["lightbar", {
            "name":"flasher",
            "defaultModeIndex": 1,
            "modes": [
                ["name", "config"],
                ["Chase", [
                    ["electric", "value", "duration"],
                        ["roofflasher", 1, 0.1],
                        ["roofflasher", 0, 0.05],
                        ["roofflasher", 1, 0.1],
                        ["roofflasher", 0, 0.2]
                    ],
                ],
            ],
        }],
    ],
    "glowMap":{
            "mod_beacon_light":                   {"simpleFunction":"roofflasher", "off":"policeparts_lights_orange", "on":"policeparts_lights_orange_on"},
            "mod_beacon_glass":                   {"simpleFunction":"roofflasher", "off":"policeparts_glass_orange", "on":"policeparts_glass_orange"},
        },
    "props": [
        ["func"      , "mesh"              , "idRef:", "idX:", "idY:"            , "baseRotation"        , "rotation"                 , "translation"        , "min", "max", "offset", "multiplier"],
        {
            "lightRange":15,
            "lightBrightness": 1,
            "lightColor":{"r":255, "g":150, "b":0, "a":250},
            "flareName":"vehicleBrakeLightFlare",
            "lightCastShadows":false,
            "texSize":64,
            "shadowSoftness":1,
            "flareScale":0.0,
            "cookieName":"/art/special/BNG_light_cookie_lightbar.dds"
        },
        ["roofflasher"    , "POINTLIGHT"        ,  "bl2r","bl2l","bl1r", {"x":60, "y":90, "z":2.50} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.5, "y":0.5, "z":-0.1},"deformGroup":"beaconlight_break"}],
        ["roofflasher"    , "POINTLIGHT"        ,  "bl2l","bl2r","bl1l", {"x":-60, "y":90, "z":-2.50} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.5, "y":0.5, "z":0.1},"deformGroup":"beaconlight_break"}],
        {
            "lightRange":0,
            "lightBrightness": 1,
            "lightColor":{"r":255, "g":150, "b":0, "a":250},
            "flareName":"vehicleBrakeLightFlare",
            "lightCastShadows":false,
            "texSize":64,
            "shadowSoftness":1,
            "flareScale":0.1,
            "cookieName":"/art/special/BNG_light_cookie_lightbar.dds"
        },
        ["roofflasher"    , "POINTLIGHT"        ,  "bl2r","bl2l","bl1r", {"x":0, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.5, "y":0.5, "z":0.05},"deformGroup":"beaconlight_break"}],
        {
            "cookieName":""
        },

    ],
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        ["mod_beacon_base", ["beaconlight"], [], {"pos":{"x": 0.0, "y":0.5, "z":1.436}, "rot":{"x":-1, "y":0, "z":0}, "scale":{"x":1.12, "y":1.12, "z":1.12}}],
        {"deformGroup":"beaconlight_break", "deformMaterialBase":"policeparts_lights_orange", "deformMaterialDamaged":"policeparts_lights_orange"},
        ["mod_beacon_light", ["beaconlight"], [], {"pos":{"x": 0.0, "y":0.5, "z":1.436}, "rot":{"x":-1, "y":0, "z":0}, "scale":{"x":1.12, "y":1.12, "z":1.12}}],
        {"deformGroup":"beaconlight_break", "deformMaterialBase":"policeparts_glass_orange", "deformMaterialDamaged":"policeparts_glass_orange_dmg"},
        ["mod_beacon_glass", ["beaconlight"], [], {"pos":{"x": 0.0, "y":0.5, "z":1.436}, "rot":{"x":-1, "y":0, "z":0}, "scale":{"x":1.12, "y":1.12, "z":1.12}}],
        {"deformGroup":"", "deformMaterialBase":"", "deformMaterialDamaged":""},
    ],
     "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"selfCollision":true},
         {"collision":true},
         {"nodeWeight":0.741},
         {"frictionCoef":0.7},
         {"group":"beaconlight"},
         {"nodeMaterial":"|NM_METAL"},
         ["bl1l", 0.0867, 0.42, 1.45],
         ["bl2l", 0.0867, 0.58, 1.45],
         ["bl3", 0.0, 0.5, 1.5],
         ["bl1r", -0.0867, 0.42, 1.45],
         ["bl2r", -0.0867, 0.58, 1.45],

    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":292500,"beamDamp":58.5},
          {"beamDeform":7605,"beamStrength":"FLT_MAX"},
          //Main shape
          {"deformGroup":"beaconlight_break"},
          {"deformationTriggerRatio":0.01},
          {"deformLimitExpansion":1.2},
          ["bl1r","bl1l"],
          ["bl2r","bl2l"],
          ["bl1r","bl2r"],
          ["bl1l","bl2l"],
          ["bl1r","bl2l"],
          ["bl1l","bl2r"],
          ["bl1r","bl3"],
          ["bl2r","bl3"],
          ["bl1l","bl3"],
          ["bl2l","bl3"],

          //attach
          {"beamSpring":292500,"beamDamp":58.5},
          {"beamDeform":3042,"beamStrength":3802.5},
          {"deformLimitExpansion":""},
          {"breakGroup":"light_attach"},
          ["bl2r","rf2r"],
          ["bl2l","rf2l"],
          ["bl1r","rf2r"],
          ["bl1l","rf2l"],
          ["bl2r","rf1r"],
          ["bl2l","rf1l"],
          ["bl1r","rf1r"],
          ["bl1l","rf1l"],
          ["bl2r","rf3r"],
          ["bl2l","rf3l"],
          ["bl3","rf2r"],
          ["bl3","rf2l"],
          ["bl2r","rf2r"],
          ["bl2l","rf2l"],
          ["bl1r","rf2r"],
          ["bl1l","rf2l"],
          ["bl3","rf3r"],
          ["bl3","rf3l"],
          ["bl1r","rf5"],
          ["bl1l","rf5"],
          ["bl2r","rf5"],
          ["bl2l","rf5"],
          ["bl3","rf5"],
          {"deformGroup":""},
          {"breakGroup":""},
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],

    "triangles": [
            ["id1:","id2:","id3:"],
            {"group":"beaconlight"},
            {"dragCoef":2.1},
            ["bl3","bl2r","bl1r"],
            ["bl3","bl2l","bl2r"],
            ["bl3","bl1l","bl2l"],
            ["bl3","bl1r","bl1l"],
            ["bl1r","bl2r","bl2l"],
            ["bl1r","bl2l","bl1l"],
    ]
},
"sprtg_emergencylights": {
    "information":{
        "authors":"BeamNG",
        "name":"Blue Flashers",
        "value":200
    },
    "slotType" : "sprtg_emergencylights",
    "controller": [
        ["fileName"],
        ["lightbar", {
            "name": "shelfLights_R",
            "defaultModeIndex": 1,
            "modes": [
                ["name", "config"],
                ["Chase", [
                    ["electric", "value", "duration"],
                        ["lightbar_b", 1, 0.1],
                        ["lightbar_b", 0, 0.1],
                        ["lightbar_b", 1, 0.05],
                        ["lightbar_b", 0, 0.05],
                        ["lightbar_b", 1, 0.2],
                        ["lightbar_b", 0, 0.35],
                    ]
                ]
            ]
        }]
    ],
    "glowMap":{
            "generic_flasher_led_L":                   {"simpleFunction":"lightbar_b", "off":"policeparts_lights_blue", "on":"policeparts_lights_blue_on"},
            "generic_flasher_led_R":                   {"simpleFunction":"lightbar_b", "off":"policeparts_lights_blue", "on":"policeparts_lights_blue_on"},
        },
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        {"deformGroup":"windshield_break", "deformMaterialBase":"policeparts_lights_blue", "deformMaterialDamaged":"policeparts_lights_blue"},
        ["generic_flasher_led_L", ["sprtg_body"], [], {"pos":{"x": -0.5, "y":-0.245, "z":1.278}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        ["generic_flasher_led_R", ["sprtg_body"], [], {"pos":{"x": 0.5, "y":-0.245, "z":1.278}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        {"deformGroup":"rearflashers_break", "deformMaterialBase":"policeparts_lights_blue", "deformMaterialDamaged":"policeparts_lights_blue"},
        ["generic_flasher_led_L", ["sprtg_body"], [], {"pos":{"x": -0.4, "y":1.5, "z":1.235}, "rot":{"x":0, "y":0, "z":180}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        ["generic_flasher_led_R", ["sprtg_body"], [], {"pos":{"x": 0.4, "y":1.5, "z":1.235}, "rot":{"x":0, "y":0, "z":180}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        {"deformGroup":"", "deformMaterialBase":"", "deformMaterialDamaged":""},
    ]
    "props": [
        ["func"      , "mesh"              , "idRef:", "idX:", "idY:"            , "baseRotation"        , "rotation"                 , "translation"        , "min", "max", "offset", "multiplier"],
        {
        "lightInnerAngle":0,
        "lightOuterAngle":70,
        "lightBrightness":1.0,
        "lightRange":15,
        "lightColor":{"r":0, "g":0, "b":255, "a":250}
        "flareName":"vehicleBrakeLightFlare",
        "lightCastShadows":false,
        "texSize":64,
        "shadowSoftness":1,
        "flareScale":0.0,
        "cookieName":"/art/special/BNG_light_cookie_lightbar.dds"
        }
        ["lightbar_b"    , "SPOTLIGHT"        , "rf4", "rf4r", "rf3", {"x":-100, "y":0, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.2, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.70, "y":-0.05, "z":0.06},"deformGroup":"rearflashers_break"}],
        ["lightbar_b"    , "SPOTLIGHT"        , "rf4", "rf4l", "rf3", {"x":-100, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.2, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.70, "y":-0.05, "z":-0.06},"deformGroup":"rearflashers_break"}],
        ["lightbar_b"    , "SPOTLIGHT"        , "rf1", "rf1r", "rf2", {"x":-100, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.2, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.84, "y":0.0, "z":-0.07},"deformGroup":"windshield_break"}],
        ["lightbar_b"    , "SPOTLIGHT"        , "rf1", "rf1l", "rf2", {"x":-100, "y":0, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.2, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.84, "y":0.0, "z":0.07},"deformGroup":"windshield_break"}],
        {
            "cookieName":""
        },

    ],
},
"sprtg_emergencylights_us": {
    "information":{
        "authors":"BeamNG",
        "name":"Blue & Red Flashers",
        "value":200
    },
    "slotType" : "sprtg_emergencylights",
    "controller": [
        ["fileName"],
        ["lightbar", {
            "name": "shelfLights_R",
            "defaultModeIndex": 1,
            "modes": [
                ["name", "config"],
                ["Chase", [
                    ["electric", "value", "duration"],
                        ["lightbar_b", 1, 0.1],
                        ["lightbar_b", 0, 0.1],
                        ["lightbar_b", 1, 0.05],
                        ["lightbar_b", 0, 0.05],
                        ["lightbar_b", 1, 0.2],
                        ["lightbar_b", 0, 0.35],
                        ["lightbar_c", 0, 0.1],
                        ["lightbar_c", 1, 0.1],
                        ["lightbar_c", 0, 0.05],
                        ["lightbar_c", 1, 0.05],
                        ["lightbar_c", 0, 0.2],
                        ["lightbar_c", 1, 0.35],
                    ]
                ]
            ]
        }]
    ],
    "glowMap":{
            "generic_flasher_led_L":                   {"simpleFunction":"lightbar_b", "off":"policeparts_lights_blue", "on":"policeparts_lights_blue_on"},
            "generic_flasher_led_R":                   {"simpleFunction":"lightbar_c", "off":"policeparts_lights_red", "on":"policeparts_lights_red_on"},
        },
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        {"deformGroup":"windshield_break", "deformMaterialBase":"policeparts_lights_blue", "deformMaterialDamaged":"policeparts_lights_blue"},
        ["generic_flasher_led_L", ["sprtg_body"], [], {"pos":{"x": -0.5, "y":-0.245, "z":1.278}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        {"deformGroup":"windshield_break", "deformMaterialBase":"policeparts_lights_red", "deformMaterialDamaged":"policeparts_lights_red"},
        ["generic_flasher_led_R", ["sprtg_body"], [], {"pos":{"x": 0.5, "y":-0.245, "z":1.278}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        {"deformGroup":"rearflashers_break", "deformMaterialBase":"policeparts_lights_blue", "deformMaterialDamaged":"policeparts_lights_blue"},
        ["generic_flasher_led_L", ["sprtg_body"], [], {"pos":{"x": -0.4, "y":1.5, "z":1.235}, "rot":{"x":0, "y":0, "z":180}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        {"deformGroup":"rearflashers_break", "deformMaterialBase":"policeparts_lights_red", "deformMaterialDamaged":"policeparts_lights_red"},
        ["generic_flasher_led_R", ["sprtg_body"], [], {"pos":{"x": 0.4, "y":1.5, "z":1.235}, "rot":{"x":0, "y":0, "z":180}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        {"deformGroup":"", "deformMaterialBase":"", "deformMaterialDamaged":""},
    ]
    "props": [
        ["func"      , "mesh"              , "idRef:", "idX:", "idY:"            , "baseRotation"        , "rotation"                 , "translation"        , "min", "max", "offset", "multiplier"],
        {
        "lightInnerAngle":0,
        "lightOuterAngle":70,
        "lightBrightness":1.0,
        "lightRange":15,
        "lightColor":{"r":0, "g":0, "b":255, "a":250}
        "flareName":"vehicleBrakeLightFlare",
        "lightCastShadows":false,
        "texSize":64,
        "shadowSoftness":1,
        "flareScale":0.0,
        "cookieName":"/art/special/BNG_light_cookie_lightbar.dds"
        }
        ["lightbar_b"    , "SPOTLIGHT"        , "rf4", "rf4r", "rf3", {"x":-100, "y":0, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.2, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.70, "y":-0.05, "z":0.06},"deformGroup":"rearflashers_break"}],
        ["lightbar_b"    , "SPOTLIGHT"        , "rf1", "rf1r", "rf2", {"x":-100, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.2, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.84, "y":0.0, "z":-0.07},"deformGroup":"windshield_break"}],
        {"lightColor":{"r":255, "g":0, "b":0, "a":250}},
        ["lightbar_c"    , "SPOTLIGHT"        , "rf4", "rf4l", "rf3", {"x":-100, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.2, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.70, "y":-0.05, "z":-0.06},"deformGroup":"rearflashers_break"}],
        ["lightbar_c"    , "SPOTLIGHT"        , "rf1", "rf1l", "rf2", {"x":-100, "y":0, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.2, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.84, "y":0.0, "z":0.07},"deformGroup":"windshield_break"}],
        {
            "cookieName":""
        },

    ],
},
"sprtg_emergencylights_amber": {
    "information":{
        "authors":"BeamNG",
        "name":"Amber Flashers",
        "value":200
    },
    "slotType" : "sprtg_emergencylights",
    "controller": [
        ["fileName"],
        ["lightbar", {
            "name": "shelfLights_R",
            "defaultModeIndex": 1,
            "modes": [
                ["name", "config"],
                ["Chase", [
                    ["electric", "value", "duration"],
                        ["lightbar_b", 1, 0.1],
                        ["lightbar_b", 0, 0.1],
                        ["lightbar_b", 1, 0.05],
                        ["lightbar_b", 0, 0.05],
                        ["lightbar_b", 1, 0.2],
                        ["lightbar_b", 0, 0.35],
                    ]
                ]
            ]
        }]
    ],
    "glowMap":{
            "generic_flasher_led_L":                   {"simpleFunction":"lightbar_b", "off":"policeparts_lights_orange", "on":"policeparts_lights_orange_on"},
            "generic_flasher_led_R":                   {"simpleFunction":"lightbar_b", "off":"policeparts_lights_orange", "on":"policeparts_lights_orange_on"},
        },
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        {"deformGroup":"windshield_break", "deformMaterialBase":"policeparts_lights_orange", "deformMaterialDamaged":"policeparts_lights_orange"},
        ["generic_flasher_led_L", ["sprtg_body"], [], {"pos":{"x": -0.5, "y":-0.245, "z":1.278}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        ["generic_flasher_led_R", ["sprtg_body"], [], {"pos":{"x": 0.5, "y":-0.245, "z":1.278}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        {"deformGroup":"rearflashers_break", "deformMaterialBase":"policeparts_lights_orange", "deformMaterialDamaged":"policeparts_lights_orange"},
        ["generic_flasher_led_L", ["sprtg_body"], [], {"pos":{"x": -0.4, "y":1.5, "z":1.235}, "rot":{"x":0, "y":0, "z":180}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        ["generic_flasher_led_R", ["sprtg_body"], [], {"pos":{"x": 0.4, "y":1.5, "z":1.235}, "rot":{"x":0, "y":0, "z":180}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        {"deformGroup":"", "deformMaterialBase":"", "deformMaterialDamaged":""},
    ]
    "props": [
        ["func"      , "mesh"              , "idRef:", "idX:", "idY:"            , "baseRotation"        , "rotation"                 , "translation"        , "min", "max", "offset", "multiplier"],
        {
        "lightInnerAngle":0,
        "lightOuterAngle":70,
        "lightBrightness":1.0,
        "lightRange":15,
        "lightColor":{"r":155, "g":150, "b":0, "a":250}
        "flareName":"vehicleBrakeLightFlare",
        "lightCastShadows":false,
        "texSize":64,
        "shadowSoftness":1,
        "flareScale":0.0,
        "cookieName":"/art/special/BNG_light_cookie_lightbar.dds"
        }
        ["lightbar_b"    , "SPOTLIGHT"        , "rf4", "rf4r", "rf3", {"x":-100, "y":0, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.2, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.70, "y":-0.05, "z":0.06},"deformGroup":"rearflashers_break"}],
        ["lightbar_b"    , "SPOTLIGHT"        , "rf4", "rf4l", "rf3", {"x":-100, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.2, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.70, "y":-0.05, "z":-0.06},"deformGroup":"rearflashers_break"}],
        ["lightbar_b"    , "SPOTLIGHT"        , "rf1", "rf1r", "rf2", {"x":-100, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.2, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.84, "y":0.0, "z":-0.07},"deformGroup":"windshield_break"}],
        ["lightbar_b"    , "SPOTLIGHT"        , "rf1", "rf1l", "rf2", {"x":-100, "y":0, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.2, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.84, "y":0.0, "z":0.07},"deformGroup":"windshield_break"}],
        {
            "cookieName":""
        },

    ],
}
"sprtg_emergencylights_display": {
    "information":{
        "authors":"BeamNG",
        "name":"Blue Flashers With Gendarmerie Sign",
        "value":400
    },
    "slotType" : "sprtg_emergencylights",
    "controller": [
        ["fileName"],
        ["lightbar", {
            "name": "shelfLights_R",
            "defaultModeIndex": 1,
            "modes": [
                ["name", "config"],
                ["Chase", [
                    ["electric", "value", "duration"],
                        ["lightbar_b", 1, 0.1],
                        ["lightbar_b", 0, 0.1],
                        ["lightbar_b", 1, 0.05],
                        ["lightbar_b", 0, 0.05],
                        ["lightbar_b", 1, 0.2],
                        ["lightbar_b", 0, 0.35],

                        ["display_police", 1, 0.5],
                        ["display_police", 0, 0.5],

                        ["display_stop", 0, 0.5],
                        ["display_stop", 1, 0.5],
                    ]
                ]
            ]
        }]
    ],
    "glowMap":{
            "generic_flasher_led_L":                   {"simpleFunction":"lightbar_b", "off":"policeparts_lights_blue", "on":"policeparts_lights_blue_on"},
            "generic_flasher_led_R":                   {"simpleFunction":"lightbar_b", "off":"policeparts_lights_blue", "on":"policeparts_lights_blue_on"},
            "display_french_police":                   {"simpleFunction":"display_police", "off":"invis", "on":"policeparts_display_on"},
            "display_french_stop":                   {"simpleFunction":"display_stop", "off":"invis", "on":"policeparts_display_on"},
            "display_off":                   {"simpleFunction":{"display_police":0.49,"display_stop":0.49}, "off":"policeparts_display", "on":"invis"},
        },
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        {"deformGroup":"windshield_break", "deformMaterialBase":"policeparts_lights_blue", "deformMaterialDamaged":"policeparts_lights_blue"},
        ["generic_flasher_led_L", ["sprtg_body"], [], {"pos":{"x": -0.5, "y":-0.245, "z":1.278}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        ["generic_flasher_led_R", ["sprtg_body"], [], {"pos":{"x": 0.5, "y":-0.245, "z":1.278}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        {"deformGroup":"rearflashers_break", "deformMaterialBase":"policeparts_lights_blue", "deformMaterialDamaged":"policeparts_lights_blue"},
        ["generic_flasher_led_L", ["sprtg_body"], [], {"pos":{"x": -0.4, "y":1.5, "z":1.235}, "rot":{"x":0, "y":0, "z":180}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        ["generic_flasher_led_R", ["sprtg_body"], [], {"pos":{"x": 0.4, "y":1.5, "z":1.235}, "rot":{"x":0, "y":0, "z":180}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        {"deformGroup":"rearflashers_break", "deformMaterialBase":"policeparts_display", "deformMaterialDamaged":"policeparts_display"},
        ["police_display", ["sprtg_body"], [], {"pos":{"x": 0.0, "y":1.5, "z":1.21}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        ["police_display_off", ["sprtg_body"], [], {"pos":{"x": 0.0, "y":1.5, "z":1.21}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        {"deformGroup":"rearflashers_break", "deformMaterialBase":"policeparts_display", "deformMaterialDamaged":"invis"},
        ["police_display_french_police", ["sprtg_body"], [], {"pos":{"x": 0.0, "y":1.5, "z":1.21}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        ["police_display_french_stop", ["sprtg_body"], [], {"pos":{"x": 0.0, "y":1.5, "z":1.21}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.5, "y":1, "z":1.5}}],

        {"deformGroup":"", "deformMaterialBase":"", "deformMaterialDamaged":""},
    ]
    "props": [
        ["func"      , "mesh"              , "idRef:", "idX:", "idY:"            , "baseRotation"        , "rotation"                 , "translation"        , "min", "max", "offset", "multiplier"],
        {
        "lightInnerAngle":0,
        "lightOuterAngle":70,
        "lightBrightness":1.0,
        "lightRange":15,
        "lightColor":{"r":0, "g":0, "b":255, "a":250}
        "flareName":"vehicleBrakeLightFlare",
        "lightCastShadows":false,
        "texSize":64,
        "shadowSoftness":1,
        "flareScale":0.0,
        "cookieName":"/art/special/BNG_light_cookie_lightbar.dds"
        }
        ["lightbar_b"    , "SPOTLIGHT"        , "rf4", "rf4r", "rf3", {"x":-100, "y":0, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.2, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.70, "y":-0.05, "z":0.06},"deformGroup":"rearflashers_break"}],
        ["lightbar_b"    , "SPOTLIGHT"        , "rf4", "rf4l", "rf3", {"x":-100, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.2, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.70, "y":-0.05, "z":-0.06},"deformGroup":"rearflashers_break"}],
        ["lightbar_b"    , "SPOTLIGHT"        , "rf1", "rf1r", "rf2", {"x":-100, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.2, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.84, "y":0.0, "z":-0.07},"deformGroup":"windshield_break"}],
        ["lightbar_b"    , "SPOTLIGHT"        , "rf1", "rf1l", "rf2", {"x":-100, "y":0, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.2, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.84, "y":0.0, "z":0.07},"deformGroup":"windshield_break"}],
        {
            "cookieName":""
        },

    ],
},
"sprtg_emergencylights_display_alt": {
    "information":{
        "authors":"BeamNG",
        "name":"Blue Flashers With Polizia Sign",
        "value":400
    },
    "slotType" : "sprtg_emergencylights",
    "controller": [
        ["fileName"],
        ["lightbar", {
            "name": "shelfLights_R",
            "defaultModeIndex": 1,
            "modes": [
                ["name", "config"],
                ["Chase", [
                    ["electric", "value", "duration"],
                        ["lightbar_b", 1, 0.1],
                        ["lightbar_b", 0, 0.1],
                        ["lightbar_b", 1, 0.05],
                        ["lightbar_b", 0, 0.05],
                        ["lightbar_b", 1, 0.2],
                        ["lightbar_b", 0, 0.35],

                        ["display_police", 1, 0.5],
                        ["display_police", 0, 0.5],

                        ["display_stop", 0, 0.5],
                        ["display_stop", 1, 0.5],
                    ]
                ]
            ]
        }]
    ],
    "glowMap":{
            "generic_flasher_led_L":                   {"simpleFunction":"lightbar_b", "off":"policeparts_lights_blue", "on":"policeparts_lights_blue_on"},
            "generic_flasher_led_R":                   {"simpleFunction":"lightbar_b", "off":"policeparts_lights_blue", "on":"policeparts_lights_blue_on"},
            "display_italian_police":                   {"simpleFunction":"display_police", "off":"invis", "on":"policeparts_display_on"},
            "display_italian_stop":                   {"simpleFunction":"display_stop", "off":"invis", "on":"policeparts_display_on"},
            "display_off":                   {"simpleFunction":{"display_police":0.49,"display_stop":0.49}, "off":"policeparts_display", "on":"invis"},
        },
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        {"deformGroup":"windshield_break", "deformMaterialBase":"policeparts_lights_blue", "deformMaterialDamaged":"policeparts_lights_blue"},
        ["generic_flasher_led_L", ["sprtg_body"], [], {"pos":{"x": -0.5, "y":-0.245, "z":1.278}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        ["generic_flasher_led_R", ["sprtg_body"], [], {"pos":{"x": 0.5, "y":-0.245, "z":1.278}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        {"deformGroup":"rearflashers_break", "deformMaterialBase":"policeparts_lights_blue", "deformMaterialDamaged":"policeparts_lights_blue"},
        ["generic_flasher_led_L", ["sprtg_body"], [], {"pos":{"x": -0.4, "y":1.5, "z":1.235}, "rot":{"x":0, "y":0, "z":180}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        ["generic_flasher_led_R", ["sprtg_body"], [], {"pos":{"x": 0.4, "y":1.5, "z":1.235}, "rot":{"x":0, "y":0, "z":180}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        {"deformGroup":"rearflashers_break", "deformMaterialBase":"policeparts_display", "deformMaterialDamaged":"policeparts_display"},
        ["police_display", ["sprtg_body"], [], {"pos":{"x": 0.0, "y":1.5, "z":1.21}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        ["police_display_off", ["sprtg_body"], [], {"pos":{"x": 0.0, "y":1.5, "z":1.21}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        {"deformGroup":"rearflashers_break", "deformMaterialBase":"policeparts_display", "deformMaterialDamaged":"invis"},
        ["police_display_italian_police", ["sprtg_body"], [], {"pos":{"x": 0.0, "y":1.5, "z":1.21}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        ["police_display_italian_stop", ["sprtg_body"], [], {"pos":{"x": 0.0, "y":1.5, "z":1.21}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.5, "y":1, "z":1.5}}],

        {"deformGroup":"", "deformMaterialBase":"", "deformMaterialDamaged":""},
    ]
    "props": [
        ["func"      , "mesh"              , "idRef:", "idX:", "idY:"            , "baseRotation"        , "rotation"                 , "translation"        , "min", "max", "offset", "multiplier"],
        {
        "lightInnerAngle":0,
        "lightOuterAngle":70,
        "lightBrightness":1.0,
        "lightRange":15,
        "lightColor":{"r":0, "g":0, "b":255, "a":250}
        "flareName":"vehicleBrakeLightFlare",
        "lightCastShadows":false,
        "texSize":64,
        "shadowSoftness":1,
        "flareScale":0.0,
        "cookieName":"/art/special/BNG_light_cookie_lightbar.dds"
        }
        ["lightbar_b"    , "SPOTLIGHT"        , "rf4", "rf4r", "rf3", {"x":-100, "y":0, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.2, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.70, "y":-0.05, "z":0.06},"deformGroup":"rearflashers_break"}],
        ["lightbar_b"    , "SPOTLIGHT"        , "rf4", "rf4l", "rf3", {"x":-100, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.2, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.70, "y":-0.05, "z":-0.06},"deformGroup":"rearflashers_break"}],
        ["lightbar_b"    , "SPOTLIGHT"        , "rf1", "rf1r", "rf2", {"x":-100, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.2, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.84, "y":0.0, "z":-0.07},"deformGroup":"windshield_break"}],
        ["lightbar_b"    , "SPOTLIGHT"        , "rf1", "rf1l", "rf2", {"x":-100, "y":0, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.2, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.84, "y":0.0, "z":0.07},"deformGroup":"windshield_break"}],
        {
            "cookieName":""
        },

    ],
},
"sprtg_emergencylights_us_display": {
    "information":{
        "authors":"BeamNG",
        "name":"Blue & Red Flashers With Police Sign",
        "value":400
    },
    "slotType" : "sprtg_emergencylights",
    "controller": [
        ["fileName"],
        ["lightbar", {
            "name": "shelfLights_R",
            "defaultModeIndex": 1,
            "modes": [
                ["name", "config"],
                ["Chase", [
                    ["electric", "value", "duration"],
                        ["lightbar_b", 1, 0.1],
                        ["lightbar_b", 0, 0.1],
                        ["lightbar_b", 1, 0.05],
                        ["lightbar_b", 0, 0.05],
                        ["lightbar_b", 1, 0.2],
                        ["lightbar_b", 0, 0.35],
                        ["lightbar_c", 0, 0.1],
                        ["lightbar_c", 1, 0.1],
                        ["lightbar_c", 0, 0.05],
                        ["lightbar_c", 1, 0.05],
                        ["lightbar_c", 0, 0.2],
                        ["lightbar_c", 1, 0.35],

                        ["display_police", 1, 0.5],
                        ["display_police", 0, 0.5],

                        ["display_stop", 0, 0.5],
                        ["display_stop", 1, 0.5],
                    ]
                ]
            ]
        }]
    ],
    "glowMap":{
            "generic_flasher_led_L":                   {"simpleFunction":"lightbar_b", "off":"policeparts_lights_blue", "on":"policeparts_lights_blue_on"},
            "generic_flasher_led_R":                   {"simpleFunction":"lightbar_c", "off":"policeparts_lights_red", "on":"policeparts_lights_red_on"},
            "display_american_police":                   {"simpleFunction":"display_police", "off":"invis", "on":"policeparts_display_on"},
            "display_american_stop":                   {"simpleFunction":"display_stop", "off":"invis", "on":"policeparts_display_on"},
            "display_off":                   {"simpleFunction":{"display_police":0.49,"display_stop":0.49}, "off":"policeparts_display", "on":"invis"},
        },
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        {"deformGroup":"windshield_break", "deformMaterialBase":"policeparts_lights_blue", "deformMaterialDamaged":"policeparts_lights_blue"},
        ["generic_flasher_led_L", ["sprtg_body"], [], {"pos":{"x": -0.5, "y":-0.245, "z":1.278}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        ["generic_flasher_led_R", ["sprtg_body"], [], {"pos":{"x": 0.5, "y":-0.245, "z":1.278}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        {"deformGroup":"rearflashers_break", "deformMaterialBase":"policeparts_lights_blue", "deformMaterialDamaged":"policeparts_lights_blue"},
        ["generic_flasher_led_L", ["sprtg_body"], [], {"pos":{"x": -0.4, "y":1.5, "z":1.235}, "rot":{"x":0, "y":0, "z":180}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        ["generic_flasher_led_R", ["sprtg_body"], [], {"pos":{"x": 0.4, "y":1.5, "z":1.235}, "rot":{"x":0, "y":0, "z":180}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        {"deformGroup":"rearflashers_break", "deformMaterialBase":"policeparts_display", "deformMaterialDamaged":"policeparts_display"},
        ["police_display", ["sprtg_body"], [], {"pos":{"x": 0.0, "y":1.5, "z":1.21}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        ["police_display_off", ["sprtg_body"], [], {"pos":{"x": 0.0, "y":1.5, "z":1.21}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        {"deformGroup":"rearflashers_break", "deformMaterialBase":"policeparts_display", "deformMaterialDamaged":"invis"},
        ["police_display_american_police", ["sprtg_body"], [], {"pos":{"x": 0.0, "y":1.5, "z":1.21}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.5, "y":1, "z":1.5}}],
        ["police_display_american_stop", ["sprtg_body"], [], {"pos":{"x": 0.0, "y":1.5, "z":1.21}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.5, "y":1, "z":1.5}}],

        {"deformGroup":"", "deformMaterialBase":"", "deformMaterialDamaged":""},
    ]
    "props": [
        ["func"      , "mesh"              , "idRef:", "idX:", "idY:"            , "baseRotation"        , "rotation"                 , "translation"        , "min", "max", "offset", "multiplier"],
        {
        "lightInnerAngle":0,
        "lightOuterAngle":70,
        "lightBrightness":1.0,
        "lightRange":15,
        "lightColor":{"r":0, "g":0, "b":255, "a":250}
        "flareName":"vehicleBrakeLightFlare",
        "lightCastShadows":false,
        "texSize":64,
        "shadowSoftness":1,
        "flareScale":0.0,
        "cookieName":"/art/special/BNG_light_cookie_lightbar.dds"
        }
        ["lightbar_b"    , "SPOTLIGHT"        , "rf4", "rf4r", "rf3", {"x":-100, "y":0, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.2, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.70, "y":-0.05, "z":0.06},"deformGroup":"rearflashers_break"}],
        ["lightbar_b"    , "SPOTLIGHT"        , "rf1", "rf1r", "rf2", {"x":-100, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.2, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.84, "y":0.0, "z":-0.07},"deformGroup":"windshield_break"}],
        {"lightColor":{"r":255, "g":0, "b":0, "a":250}},
        ["lightbar_c"    , "SPOTLIGHT"        , "rf4", "rf4l", "rf3", {"x":-100, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.2, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.70, "y":-0.05, "z":-0.06},"deformGroup":"rearflashers_break"}],
        ["lightbar_c"    , "SPOTLIGHT"        , "rf1", "rf1l", "rf2", {"x":-100, "y":0, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.2, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.84, "y":0.0, "z":0.07},"deformGroup":"windshield_break"}],
        {
            "cookieName":""
        },

    ],
},
"sprtg_emergencylights_F": {
    "information":{
        "authors":"BeamNG",
        "name":"Blue Flashers",
        "value":200
    },
    "slotType" : "sprtg_emergencylights_F",
    "controller": [
        ["fileName"],
        ["lightbar", {
            "name": "bumperLights_F",
            "defaultModeIndex": 1,
            "modes": [
                ["name", "config"],
                ["Chase", [
                    ["electric", "value", "duration"],
                        ["lightbar_d", 1, 0.1],
                        ["lightbar_d", 0, 0.1],
                        ["lightbar_d", 1, 0.05],
                        ["lightbar_d", 0, 0.05],
                        ["lightbar_d", 1, 0.2],
                        ["lightbar_d", 0, 0.35],
                    ]
                ]
            ]
        }]
    ],
    "glowMap":{
            "generic_flasher_led_L_b":                   {"simpleFunction":"lightbar_d", "off":"policeparts_lights_blue", "on":"policeparts_lights_blue_on"},
            "generic_flasher_led_R_b":                   {"simpleFunction":"lightbar_d", "off":"policeparts_lights_blue", "on":"policeparts_lights_blue_on"},
        },
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        {"deformGroup":"frontflashers_break", "deformMaterialBase":"mod_lightbar", "deformMaterialDamaged":"mod_lightbar"},
        ["generic_flasher_led_L_b", ["sprtg_bumper_F"], [], {"pos":{"x": -0.235, "y":-2.157, "z":0.6471}, "rot":{"x":0, "y":0, "z":-10}, "scale":{"x":0.7, "y":1, "z":0.3}}],
        ["generic_flasher_led_R_b", ["sprtg_bumper_F"], [], {"pos":{"x": 0.235, "y":-2.157, "z":0.6471}, "rot":{"x":0, "y":0, "z":10}, "scale":{"x":0.7, "y":1, "z":0.3}}],
        {"deformGroup":"", "deformMaterialBase":"", "deformMaterialDamaged":""},
    ]
    "props": [
        ["func"      , "mesh"              , "idRef:", "idX:", "idY:"            , "baseRotation"        , "rotation"                 , "translation"        , "min", "max", "offset", "multiplier"],
        {
        "lightInnerAngle":0,
        "lightOuterAngle":70,
        "lightBrightness":0.8,
        "lightRange":10,
        "lightColor":{"r":10, "g":10, "b":255, "a":255}
        "flareName":"vehicleBrakeLightFlare",
        "lightCastShadows":false,
        "texSize":64,
        "shadowSoftness":1,
        "flareScale":0.0,
        "cookieName":"/art/special/BNG_light_cookie_lightbar.dds"
        }
        ["lightbar_d"    , "SPOTLIGHT"        , "fb2", "fb2r", "fb1", {"x":0, "y":-0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.45, "y":0.4, "z":0.05},"deformGroup":"frontflashers_break"}],
        ["lightbar_d"    , "SPOTLIGHT"        , "fb2", "fb2l", "fb1", {"x":0, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.45, "y":0.4, "z":-0.05},"deformGroup":"frontflashers_break"}],
        {
            "cookieName":""
        },
    ],
},
"sprtg_emergencylights_F_us": {
    "information":{
        "authors":"BeamNG",
        "name":"Blue & Red Flashers",
        "value":200
    },
    "slotType" : "sprtg_emergencylights_F",
    "controller": [
        ["fileName"],
        ["lightbar", {
            "name": "bumperLights_F",
            "defaultModeIndex": 1,
            "modes": [
                ["name", "config"],
                ["Chase", [
                    ["electric", "value", "duration"],
                        ["lightbar_d", 1, 0.1],
                        ["lightbar_d", 0, 0.1],
                        ["lightbar_d", 1, 0.05],
                        ["lightbar_d", 0, 0.05],
                        ["lightbar_d", 1, 0.2],
                        ["lightbar_d", 0, 0.35],
                        ["lightbar_e", 0, 0.1],
                        ["lightbar_e", 1, 0.1],
                        ["lightbar_e", 0, 0.05],
                        ["lightbar_e", 1, 0.05],
                        ["lightbar_e", 0, 0.2],
                        ["lightbar_e", 1, 0.35],
                    ]
                ]
            ]
        }]
    ],
    "glowMap":{
            "generic_flasher_led_L_b":                   {"simpleFunction":"lightbar_d", "off":"policeparts_lights_blue", "on":"policeparts_lights_blue_on"},
            "generic_flasher_led_R_b":                   {"simpleFunction":"lightbar_e", "off":"policeparts_lights_red", "on":"policeparts_lights_red_on"},
        },
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        {"deformGroup":"frontflashers_break", "deformMaterialBase":"mod_lightbar", "deformMaterialDamaged":"mod_lightbar"},
        ["generic_flasher_led_L_b", ["sprtg_bumper_F"], [], {"pos":{"x": -0.235, "y":-2.157, "z":0.6471}, "rot":{"x":0, "y":0, "z":-10}, "scale":{"x":0.7, "y":1, "z":0.3}}],
        ["generic_flasher_led_R_b", ["sprtg_bumper_F"], [], {"pos":{"x": 0.235, "y":-2.157, "z":0.6471}, "rot":{"x":0, "y":0, "z":10}, "scale":{"x":0.7, "y":1, "z":0.3}}],
        {"deformGroup":"", "deformMaterialBase":"", "deformMaterialDamaged":""},
    ]
    "props": [
        ["func"      , "mesh"              , "idRef:", "idX:", "idY:"            , "baseRotation"        , "rotation"                 , "translation"        , "min", "max", "offset", "multiplier"],
        {
        "lightInnerAngle":0,
        "lightOuterAngle":70,
        "lightBrightness":0.8,
        "lightRange":10,
        "lightColor":{"r":10, "g":10, "b":255, "a":255}
        "flareName":"vehicleBrakeLightFlare",
        "lightCastShadows":false,
        "texSize":64,
        "shadowSoftness":1,
        "flareScale":0.0,
        "cookieName":"/art/special/BNG_light_cookie_lightbar.dds"
        }
        ["lightbar_d"    , "SPOTLIGHT"        , "fb2", "fb2r", "fb1", {"x":0, "y":-0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.45, "y":0.4, "z":0.05},"deformGroup":"frontflashers_break"}],
        {"lightColor":{"r":255, "g":10, "b":10, "a":255}},
        ["lightbar_e"    , "SPOTLIGHT"        , "fb2", "fb2l", "fb1", {"x":0, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.45, "y":0.4, "z":-0.05},"deformGroup":"frontflashers_break"}],
        {
            "cookieName":""
        },
    ],
},
"sprtg_emergencylights_F_amber": {
    "information":{
        "authors":"BeamNG",
        "name":"Amber Flashers",
        "value":200
    },
    "slotType" : "sprtg_emergencylights_F",
    "controller": [
        ["fileName"],
        ["lightbar", {
            "name": "bumperLights_F",
            "defaultModeIndex": 1,
            "modes": [
                ["name", "config"],
                ["Chase", [
                    ["electric", "value", "duration"],
                        ["lightbar_d", 1, 0.1],
                        ["lightbar_d", 0, 0.1],
                        ["lightbar_d", 1, 0.05],
                        ["lightbar_d", 0, 0.05],
                        ["lightbar_d", 1, 0.2],
                        ["lightbar_d", 0, 0.35],
                    ]
                ]
            ]
        }]
    ],
    "glowMap":{
            "generic_flasher_led_L_b":                   {"simpleFunction":"lightbar_d", "off":"policeparts_lights_orange", "on":"policeparts_lights_orange_on"},
            "generic_flasher_led_R_b":                   {"simpleFunction":"lightbar_d", "off":"policeparts_lights_orange", "on":"policeparts_lights_orange_on"},
        },
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        {"deformGroup":"frontflashers_break", "deformMaterialBase":"mod_lightbar", "deformMaterialDamaged":"mod_lightbar"},
        ["generic_flasher_led_L_b", ["sprtg_bumper_F"], [], {"pos":{"x": -0.235, "y":-2.157, "z":0.6471}, "rot":{"x":0, "y":0, "z":-10}, "scale":{"x":0.7, "y":1, "z":0.3}}],
        ["generic_flasher_led_R_b", ["sprtg_bumper_F"], [], {"pos":{"x": 0.235, "y":-2.157, "z":0.6471}, "rot":{"x":0, "y":0, "z":10}, "scale":{"x":0.7, "y":1, "z":0.3}}],
        {"deformGroup":"", "deformMaterialBase":"", "deformMaterialDamaged":""},
    ]
    "props": [
        ["func"      , "mesh"              , "idRef:", "idX:", "idY:"            , "baseRotation"        , "rotation"                 , "translation"        , "min", "max", "offset", "multiplier"],
        {
        "lightInnerAngle":0,
        "lightOuterAngle":70,
        "lightBrightness":0.8,
        "lightRange":10,
        "lightColor":{"r":255, "g":150, "b":10, "a":255}
        "flareName":"vehicleBrakeLightFlare",
        "lightCastShadows":false,
        "texSize":64,
        "shadowSoftness":1,
        "flareScale":0.0,
        "cookieName":"/art/special/BNG_light_cookie_lightbar.dds"
        }
        ["lightbar_d"    , "SPOTLIGHT"        , "fb2", "fb2r", "fb1", {"x":0, "y":-0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.45, "y":0.4, "z":0.05},"deformGroup":"frontflashers_break"}],
        ["lightbar_d"    , "SPOTLIGHT"        , "fb2", "fb2l", "fb1", {"x":0, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0.0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.45, "y":0.4, "z":-0.05},"deformGroup":"frontflashers_break"}],
        {
            "cookieName":""
        },
    ],
},

}