# 🔧 C Repairkit

```
Config = {}

Config.ESXVersion = "new" -- "new" or "old"

Config.Debug = false


Config.ItemName = 'fixkit'

-- ============================================
-- REPAIR SETTINGS
-- ============================================
Config.RepairTime = 10  -- Time in seconds to repair vehicle
Config.CancelKey = "X" -- Key to cancel repair process
Config.InfiniteRepairs = false  -- If true, repairkit will not be removed after use

-- ============================================
-- JOB SETTINGS
-- ============================================
Config.OnlyJobsCanUse = false  -- If true, only allowed jobs can use repairkit
Config.AllowedJobs = { 'mechanic' }  -- Jobs that are allowed to use the repairkit
Config.BlockIfMechanicOnline = true     -- If true, normal players cannot use repairkit when mechanic is online
Config.CheckMechanicInterval = 1000     -- How often to check if mechanic is online (in ms)

-- ============================================
-- POSITION AND ANIMATION SETTINGS
-- ============================================
Config.MustBeAtHood = true  -- If true, player must be at the hood to repair
Config.AnimDict = "mini@repair"  -- Animation dictionary
Config.AnimName = "fixing_a_ped"  -- Animation name
Config.AnimFlag = 1  -- Animation flag

-- ============================================
-- PROGRESS BAR SETTINGS
-- ============================================

Config.ProgressBar = {
    type = "esx", -- "custom" or "esx"
    text = "Fixing Vehicle...",
    
    customEvent = 'YOUR:startProgressbar',
    customStopEvent = 'YOUR:stopProgressbar'
}

-- ============================================
-- NOTIFICATION SYSTEM
-- ============================================

Config.NotifyType = "esx" -- "custom" or "esx"

Config.CustomNotify = {
    event = 'YOUR:Notification',
    parameterOrder = {'title', 'text', 'type', 'time'}
}

Config.TextKeys = {
    title = 'title',
    text  = 'message',
    type  = 'type',
    time  = 'timeout'
}

-- ============================================
-- NOTIFICATION TEXT
-- ============================================

Config.NotifyText = {
    ['must_be_outside'] = {
        title = "Vehicle",
        text = "You must be outside the vehicle!",
        type = "error",
        time = 2500
    },
    ['no_vehicle_nearby'] = {
        title = "Vehicle",
        text = "No vehicle nearby.",
        type = "error",
        time = 2500
    },
    ['finished_repair'] = {
        title = "Repair",
        text = "The vehicle has been successfully repaired!",
        type = "success",
        time = 2500
    },
    ['aborted_repair'] = {
        title = "Repair",
        text = "You canceled the repair.",
        type = "error",
        time = 2500
    },
    ['not_allowed'] = {
        title = "Access Denied",
        text = "You are not allowed to use the repair kit!",
        type = "error",
        time = 2500
    },
    ['must_be_at_hood'] = {
        title = "Position",
        text = "You must stand in front of the hood!",
        type = "error",
        time = 2500
    },
    ['mechanic_online'] = {
        title = "Mechanic Online",
        text = "There are mechanics online! Please call a mechanic.",
        type = "info",
        time = 5000
    },
    ['cancel_hint'] = {
        title = "Cancel",
        text = "Press [X] to cancel the repair.",
        type = "info",
        time = 3000
    }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://c-service.gitbook.io/c-service-docs/free/c-repairkit.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
