# Emergency Repair Bench

## Configuration

### Default configuartion file

This is inside the `repairbench_conf.lua`

```lua
Config.Emergency = {
    requireDutyCheck = false,	-- if true, when a mechanic is online, the repair button won't show
                                -- if false, the repair option will always be available
    Jobs = {
        -- DO NOT DO THIS -- ["police"] = 0, 1, 2, 3 - This is not how this works
        -- The grade is that grade and above, so if its 2 then its everything from 2 and above
        ["police"] = 0, -- Job and Job Grade
        ["ambulance"] = 0,
        ["mechanic"] = 0,
    },

    LockEmergency = true,  -- Enable this to lock make only "Emergency" (Class 18) vehicles to be used with the bench

    Locations = {
        { coords = vec4(451.05, -973.19, 25.7, 180.0), prop = false, }, -- MRPD UNDERGROUND PARKING
        { coords = vec4(342.51, -570.98, 28.8, 70.0), prop = false, }, -- PILL BOX GARAGE
    },

    CosmeticTable = { 			-- This controls what will appear in the emergency mech bench, "false" to hide it
        ["Repair" ] = true,
        ["Paints"] = true,
        ["Horn"] = true,
        ["Hood"] = true,
        ["Exhaust"] = true,
        ["RollCage"] = true,
        ["Roof"] = true,
        ["Spoiler"] = true,
        ["Seats"] = true,
        ["PlateHolder"] = true,
        ["VanityPlate"] = true,
        ["CustomPlate"] = true,
        ["Skirts"] = true,
        ["RightFender"] = true,
        ["LeftFender"] = true,
        ["Liverys"] = true,
        ["OldLiverys"] = true,
        ["RoofLiverys"] = true,
        ["Grille"] = true,
        ["FrontBumper"] = true,
        ["BackBumper"] = true,
        ["TrimA"] = true,
        ["TrimB"] = true,
        ["Trunk"] = true,
        ["EngineBlock"] = true,
        ["Filter"] = true,
        ["Struts"] = true,
        ["Hydraulics"] = true,
        ["ArchCovers"] = true,
        ["FuelTank"] = true,
        ["Aerials"] = true,
        ["Extras"] = true,
        ["Ornaments"] = true,
        ["DashBoard"] = true,
        ["Dials"] = true,
        ["DoorSpeakers"] = true,
        ["SteeringWheels"] = true,
        ["ShifterLeavers"] = true,
        ["Plaques"] = true,
        ["Speakers"] = true,
        ["WindowTints"] = true,
        ["Rims"] = true,
    },
    PreformaceTable = {
        ["Engine"] = true,
        ["Brakes"] = true,
        ["Suspension"] = true,
        ["Transmission"] = true,
        ["Armour"] = false,
        ["Turbo"] = false,
        ["Harness"] = true,
    }
}
```

## Setting information

### requireDutyCheck

This toggles the check for if anyone with a mechanic job is online

* When true, if anyone with mechanic job role is online, this will hide the `repair` option from the menu
* When false, it will always show the repair option in the menu

### Jobs

This is the list of jobs than can access the Emergency Repair Benches

This needs to be a table key and a grade number

All grades of the job role above this will also be able to use it

### LockEmergency

If true, only vehicles classed as emergency vehicles

If false, any vehicle will be able to be used to access the emergency bench

### Locations

This is the locations where the emergency benches will spawn

If prop = true it will create a repair bench prop model for users to target otherwise the target will be need to be placed on a prop already in place

### CosmeticTable / PerformanceTable

Setting each of these to true and false will enable or disable that option in the menu for users
