pScripts
  • INFORMATION
    • FiveM Asset Escrow System
    • Assets Updates
    • Discord Roles
  • Assets & Guides
    • 👨‍⚖️DOJ Job
      • 👋Installation Guide
      • ⚙️Config Files
      • Client Exports
      • Server Exports
    • 💻DOJ MDT
      • 👋Installation Guide
      • ⚙️Config Files
      • Client Exports
      • Server Exports
    • 🌿Weed Plants
      • 👋Installation Guide
      • ⚙️Config Files
      • Client Exports
      • Server Exports
    • 🚗Car Sale Job
      • 👋Installation Guide
      • ⚙️Config File
      • Client Exports
      • Server Exports
    • 📙Job Core
      • ⚙️Config File
      • Exports
    • 👮Police Job
      • 👋Installation Guide
      • ⚠️Common Issues
      • ⁉️Setup Server
      • ⚙️Config Files
      • Client Exports
        • Bodycam
        • Evidence System
        • Duty GPS
        • Interactions
        • Jail System
        • Police Objects
        • Speed Camera
        • Manage Traffic
        • Misc
      • Server Exports
        • Evidence System
        • Interactions
        • Jail System
        • Misc
    • 💻Police MDT
      • ⁉️Setup Server
      • ⚙️Config File
      • Client Exports
      • Server Exports
      • Dispatch System
    • 🚑Ambulance Job
      • 👋Installation Guide
      • ⁉️Setup Server
      • ⚙️Config Files
      • Client Exports
      • Server Exports
    • 💻Ambulance MDT
      • 👋Installation Guide
      • ⚙️Config File
      • Exports and Events
      • Dispatch System
    • 🛠️Mechanic Job
      • ⚙️Config Files
      • Mileage System
      • Nitro System
      • Lifters System
      • Misc
    • 💻Mechanic MDT
      • ⚙️Config File
      • Exports
      • Dispatch System
      • Licenses System
    • 💵Fleeca Robbery
      • 👋Installation Guide
      • ⚙️Config File
    • ⌚Jewelry Robbery
      • 👋Installation Guide
      • ⚙️Config File
    • 💇Appearance
      • ⚙️Config Files
      • Client Exports
    • 👀Hints
      • Exports
    • 👋Helper
      • Exports
    • 🔧Tuning Menu
      • Exports and Events
      • ⚙️Config Files
    • 🆔Documents
      • ⚙️Config File
      • Exports and Events
    • 📱Phone
      • ⤵️INSTALLATION
      • ⚙️CONFIG FILES
      • 📃FEATURES
      • 📱APPS
      • 📇SIM CARDS
      • 📳NOTIFICATIONS
      • 📨MESSAGES
      • 🚘GARAGES
      • 🪙CRYPTO
      • 🔪DARK CONNECT
      • ⌨️FUNCTIONS
      • 🌎LANGUAGE
      • ⚠️COMMON ISSUES
    • 🪙Casino Games
      • 🎰Slot Machine
      • 🏐Roulette
      • ♣️Poker
    • 💻GCT
      • 📨EXPORTS
    • 💻Civil MDT
      • ⤵️INSTALLATION
      • 📱APPS
      • 🏎️BOOSTING
      • 🏅ACHIEVEMENTS
      • ⚠️COMMON ISSUES
Powered by GitBook
On this page
  1. Assets & Guides
  2. Mechanic Job

Config Files

Main Config
Config = {}

Config.Debug = false
Config.Framework = 'ESX' -- ESX / QB / QBOX
Config.Language = 'en' -- en / pl
Config.MechanicMDT = GetResourceState('piotreq_lst') ~= 'missing'

Config.TrimPlate = function(plate)
    return (string.gsub(plate, "^%s*(.-)%s*$", "%1"))
end

Config.Workshops = {
    ['mechanic'] = {
        coords = vector3(948.6879, -1030.3209, 38.9723),
        size = vector3(85.0, 85.0, 60.0),
        rotation = 180.7125,
        blip = {
            label = 'LS Customs',
            sprite = 402,
            color = 44,
            scale = 0.9
        }
    }
}

Config.Repairs = {
    engineTime = 7500,
    bodyTime = 7500,
    tireTime = 15000,
    oilTime = 7500,
    brakesTime = 7500,
    nitroTime = 15000,
    cleanTime = 5000,
    checkTime = 5000
}

Config.OutfitsAccess = {
    ['mechanic'] = 0
}

Config.Radio = {
    [4] = { -- frequency
        jobs = {['mechanic'] = true},
        label = "MECH"
    },
    [5] = {
        jobs = {['mechanic'] = true},
        label = "MECH"
    },
    [6] = {
        jobs = {['mechanic'] = true},
        label = "MECH"
    },
}

Config.Parts = {
    [0] = { -- for vehicle class Compacts
        engine = { -- for engine
            [{0, 1000}] = { -- engine health 0-100
                [1] = {part = 'parts_vip', count = 1} -- need this items to repair
            }
        },
        body = {
            [{0, 1000}] = {
                [1] = {part = 'parts_vip', count = 1}
            }
        },
        engineOil = 'engine_oil', -- item name
        gearOil = 'gear_oil',
        brakeSystem = 'brake_system'
    },
    [1] = {
        engine = {
            [{0, 1000}] = {
                [1] = {part = 'parts_vip', count = 1}
            }
        },
        body = {
            [{0, 1000}] = {
                [1] = {part = 'parts_vip', count = 1}
            }
        },
        engineOil = 'engine_oil',
        gearOil = 'gear_oil',
        brakeSystem = 'brake_system'
    },
    [2] = {
        engine = {
            [{0, 1000}] = {
                [1] = {part = 'parts_vip', count = 1}
            }
        },
        body = {
            [{0, 1000}] = {
                [1] = {part = 'parts_vip', count = 1}
            }
        },
        engineOil = 'engine_oil',
        gearOil = 'gear_oil',
        brakeSystem = 'brake_system'
    },
    [3] = {
        engine = {
            [{0, 1000}] = {
                [1] = {part = 'parts_vip', count = 1}
            }
        },
        body = {
            [{0, 1000}] = {
                [1] = {part = 'parts_vip', count = 1}
            }
        },
        engineOil = 'engine_oil',
        gearOil = 'gear_oil',
        brakeSystem = 'brake_system'
    },
    [4] = {
        engine = {
            [{0, 1000}] = {
                [1] = {part = 'parts_vip', count = 1}
            }
        },
        body = {
            [{0, 1000}] = {
                [1] = {part = 'parts_vip', count = 1}
            }
        },
        engineOil = 'engine_oil',
        gearOil = 'gear_oil',
        brakeSystem = 'brake_system'
    },
    [5] = {
        engine = {
            [{0, 1000}] = {
                [1] = {part = 'parts_vip', count = 1}
            }
        },
        body = {
            [{0, 1000}] = {
                [1] = {part = 'parts_vip', count = 1}
            }
        },
        engineOil = 'engine_oil',
        gearOil = 'gear_oil',
        brakeSystem = 'brake_system'
    },
    [6] = {
        engine = {
            [{0, 1000}] = {
                [1] = {part = 'parts_vip', count = 1}
            }
        },
        body = {
            [{0, 1000}] = {
                [1] = {part = 'parts_vip', count = 1}
            }
        },
        engineOil = 'engine_oil',
        gearOil = 'gear_oil',
        brakeSystem = 'brake_system'
    },
    ['sultanrs'] = { -- for specific model
        engine = {
            [{0, 1000}] = {
                [1] = {part = 'parts_vip', count = 1}
            }
        },
        body = {
            [{0, 1000}] = {
                [1] = {part = 'parts_vip', count = 1}
            }
        },
        engineOil = 'engine_oil', -- item name
        gearOil = 'gear_oil',
        brakeSystem = 'brake_system'
    }
}

Config.Blacklist = { -- for flatbed
    [10] = true, -- Industrial
    [13] = true, -- Cycles
    [14] = true, -- Boats
    [15] = true, -- Helicopters
    [16] = true, -- Planes
    [17] = true, -- Service
    [20] = true, -- Commercial
    [21] = true -- Trains
}

Config.Flatbeds = {
    {
        model = "flatbed3",
        Extras = {
            [1] = false 
        },
        Attach = vector2(0.0, 1.0),
        Radius = 3.0,
        Default = {
            Pos = vector3(0.0, -3.8, 0.35),
            Rot = vector3(0.0, 0.0, 0.0)
        },
        Active = {
            Pos = vector3(0.0, -8.20, -0.75),
            Rot = vector3(15.0, 0.0, 0.0)
        }
    }
}
Interactions Config
Config.Interactions = {
    ['pushVehicle'] = true,
    ['washVehicle'] = true,
    ['unlockVehicle'] = true,
}

Config.Interactions.requireDuty = false
Lifters Config
Config.Lifters = {}

Config.Lifters.Offsets = {
    ['pole'] = {
        [1] = vector3(1.43, -2.88, -0.3),
        [2] = vector3(-1.43, -2.88, -0.3),
        [3] = vector3(-1.43, 2.88, -0.3),
        [4] = vector3(1.43, 2.88, -0.3),
    },
    ['box'] = vector4(1.80, -2.9, 1.35, 0.0)
}

Config.Lifters.Points = {
    [1] = {
        coords = vector4(954.1373, -1025.4955, 39.9723, 269.3536),
        maxZ = 42.1723,
        minZ = 40.1723,
        detachOffset = vector3(3.25, 0.0, 0.0),
        jobs = {['mechanic'] = 0}
    },
    [2] = {
        coords = vector4(954.0934, -1019.5462, 39.9723, 269.6999),
        maxZ = 42.1723,
        minZ = 40.1723,
        detachOffset = vector3(3.25, 0.0, 0.0),
        jobs = {['mechanic'] = 0}
    },
}
Mileage Config
Config.Mileage = {}

Config.Mileage.Speed = {
    [50000] = 0.8, -- from 50k mileage, max speed of vehicle will be 0.98 (its not 50km km, its value from database which is not formatted)
}

Config.Mileage.Brakes = {
    [100] = 0.65 -- if brakes is 10% or less they will work bad
}
Nitro Config
Config.Nitro = {}

Config.Nitro.SpeedMultiplier = 2.0
Config.Nitro.Decrease = 2.0 -- script will remove 2.0 nitro every second while using
Config.Nitro.TempIncrease = 1.0 -- increase engine temperature for 1.0 while using nitro
Config.Nitro.TempWait = 150 -- every 250ms increase temperature while using nitro
Config.Nitro.MaxTemperature = 140.0 -- from this temperature, engine can blow up
Config.Nitro.BlowChance = 100 -- 50% for blow up engine when reach max temperature
Config.Nitro.AllowedJobs = { -- which jobs can refill nos bottle (set to false if you want to allow everyone)
    ['mechanic'] = 0 -- job name and grade
}
Spawner Config
Config.Spawner = {}

Config.Spawner.Spawners = {
    ['mechanic'] = {
        [1] = {
            coords = vector4(958.2089, -1038.2305, 40.9741, 270.2281),
            spawnCoords = vector4(969.0213, -1040.5437, 40.8346, 180.5936),
            ped = 's_m_y_airworker',
            vehicles = {
                ['flatbed3'] = 'flatbed' -- model name from base game for photo
            }
        }
    }
}

Config.Spawner.AddKeys = function(plate)
    TriggerServerEvent('p_carkeys:AddKeys', plate)
    TriggerServerEvent('giveremote', plate)
end

Config.Spawner.RemoveKeys = function(plate)
    TriggerServerEvent('p_carkeys:RemoveKeys', plate)
    TriggerServerEvent('removeremote', plate)
end
PushCar Config
Config.PushCar = {}

Config.PushCar.MinHealth = 1000.0
Config.PushCar.Keys = {
    ['left'] = 'A',
    ['right'] = 'D'
}

Config.PushCar.OnStart = function()
    LocalPlayer.state.invBusy = true
    LocalPlayer.state.canUseWeapons = false
    LocalPlayer.state.invHotkeys = false
end

Config.PushCar.OnStop = function()
    LocalPlayer.state.invBusy = false
    LocalPlayer.state.canUseWeapons = true
    LocalPlayer.state.invHotkeys = true
end
Stashes Config
Config.Stashes = {
    ['mechanic'] = {
        [1] = {
            coords = vector3(956.42, -1045.08, 40.97),
            name = 'mechanic_stash_1',
            label = 'Storage',
            slots = 20,
            weight = 500000,
            shared = false,
            trash = true, -- trash on target?
            wardrobe = true -- wardrobe on target?
        }
    }
}
PreviousMechanic JobNextMileage System

Last updated 19 days ago

🛠️
⚙️