Repairkit Script | Interactive Repairing Minigame!

Preview: Click

Tebex: Buy for 22.99€ + VAT

Config
_4p = {
    Framework = "esx", -- Framework you are using (esx, qbcore or custom) 

    LoseitemOnFailedUse = false, -- If User press wrong key or takes to long to use the item, should the item be removed from inventory?

    repairAnimDict = "mini@repair", -- Animation dictionary
    repairAnimName = "fixing_a_player", -- Animation name

    timeSequence = 1.5, -- Time in seconds for the player to click the key

    specificSettings = {
        mechanicOnlineAllowed = true, -- can players repair their vehicle when a mechanic is online?
        mechanicJobs = {"mechanic"}, -- Jobs that are considered as mechanic
        allowedOnlineMechanics = 1, -- How many mechanics need to be online to disallow players to repair their vehicle
    },

    items = {
        -- vehicle classes: https://docs.fivem.net/natives/?_0x29439776AAA00A62
        ["repairkit"] = {
            canUse = {}, -- Jobs, if empty all jobs can use the item
            RepairVehicleClasses = {}, -- Vehicles that can be repaired with this item, if empty all vehicles can be repaired
        },
        ["polrepairkit"] = {
            canUse = {"police"}, -- Jobs, if empty all jobs can use the item
            RepairVehicleClasses = {18}, -- Vehicles that can be repaired with this item, if empty all vehicles can be repaired
        },
        ["helirepairkit"] = {
            canUse = {}, -- Jobs, if empty all jobs can use the item
            RepairVehicleClasses = {15}, -- Vehicles that can be repaired with this item, if empty all vehicles can be repaired
        },
    },

    lang = "en",
}

_4p.RepairVehicleParts = function(vehicle)
    SetVehicleFixed(vehicle)
    SetVehicleUndriveable(vehicle, false)
    SetVehicleEngineOn(vehicle, true, true)
end

_4p.notify = function(message, source)
    if IsDuplicityVersion() then
        if _4p.Framework == "esx" then
            TriggerClientEvent("esx:showNotification", source, message)
        elseif _4p.Framework == "qbcore" then
            TriggerClientEvent("QBCore:Notify", source, message)
        else
            print("^1[4p-FishingScript] ^3You are using a custom framework, please add a notification function to the config.lua^7")
        end
    else
        if _4p.Framework == "esx" then
            Framework.object.ShowNotification(message)
        elseif _4p.Framework == "qbcore" then
            Framework.object.Functions.Notify(message)
        else
            print("^1[4p-FishingScript] ^3You are using a custom framework, please add a notification function to the config.lua^7")
        end
    end
end

_4p.ToggleInventory = function(source, bool)
    -- if using a ui inventory it can be buggy with the repairkitui, add you event here to close the inventory
    TriggerEvent("4p-inventory:closeInventory")
end

_4p.language = {
    ["de"] = {
        press = "Drücke",
        onyourkeyboard = "auf deiner Tastatur",
        wait = "Warte!",
        abouttorepair = "Du bist dabei dein Fahrzeug zu reparieren",
        repairing = "Das Fahrzeug wird repariert",
        success = "Erfolg!",
        repaired = "Dein Fahrzeug wurde repariert",
        no_vehicle_nearby = "Kein Fahrzeug in der Nähe",
        repair_cancelled = "Reparatur abgebrochen",
        vehicle_repaired = "Fahrzeug repariert",
        mechaniconline = "Ein Mechaniker ist online, du kannst dein Fahrzeug nicht reparieren",
        wrongclass = "Dieses Fahrzeug kann nicht mit diesem Kit repariert werden",
        youcantuseitem = "Du kannst dieses Item nicht benutzen",
    },
    ["en"] = {
        press = "Press",
        onyourkeyboard = "on your keyboard",
        wait = "Wait!",
        abouttorepair = "You are about to repair your vehicle",
        repairing = "Repairing the vehicle",
        success = "Success!",
        repaired = "Your vehicle has been repaired",
        no_vehicle_nearby = "No vehicle nearby",
        repair_cancelled = "Repair cancelled",
        vehicle_repaired = "Vehicle repaired",
        mechaniconline = "A mechanic is online, you can't repair your vehicle",
        wrongclass = "This vehicle can't be repaired with this kit",
        youcantuseitem = "You can't use this item",
    },
}

NOW WITH QBCORE SUPPORT!

If you’re experiencing any issues, don’t worry! We’ve got you covered. Simply open a ticket in our Discord, and our team will work hard to assist you.

Discover our simple yet fun FiveM Repairkit Script:

Key Functions:

🡂 Add realism and utility
🡂 You can configure the use of the repairkit for each job (police, mechanic, civilian etc.)
🡂 Easy Config
🡂 No more stranded players—keep the action going with fast vehicle repairs. Ideal for both casual and serious roleplay communities.
🡂 Change the color to your own!


4p-fishing: click
4p-crafting: click
4p-pausemenu: click
4p-dice: click

|-------------------------------------|----------------------------|
| Code is accessible | No |
| Subscription-based | No |
| Lines (approximately) | 500 |
| Requirements | es_extended |
| Support | Yes |

8 Likes

Great Work, keep up!

6 Likes

very cool idea! can i change the color in the config?

6 Likes

yes! :slight_smile:

4 Likes

thats something i’ve never seen before! can i change the duration of repairing?

5 Likes

yes you can

5 Likes

which languages ​​are included?

5 Likes

do you mean Translation? We have multiple setted in config but we can add more if needed

5 Likes

open source?

5 Likes

Script is not Open-Source

5 Likes