[PAID] vsMechanicSystem

A script by VibeScripts

No reviews yet.
[PAID] vsMechanicSystem main image

Full Description

[PAID] vsMechanicSystem

Description

The vsMechanicSystem, provides a permanently available mechanic on your server who can repair your players’ cars after an accident. This ensures realistic roleplay and, above all, less FailRP!

Get this Script at our Store for just 12.99 € !

Showcase

Link to the Showcase Video

Config

Config = {}

Config.Version = true -- select your version (true = old version)
Config.Locale = 'en' -- choose your language (de | en)

Config.Key = 38 -- Key: E (interaction button) -> https://docs.fivem.net/docs/game-references/controls/
Config.Align = 'top-left' -- where the menu should be displayed

-- General-Settings
Config.RequestMechanic = "requestmechanic" -- Command to call the mechanic

Config.JobName = 'mechanic' -- name from job

Config.SpawnRadius = 50 -- Spawn radius from car (recommended: 100)
Config.MaxTiming = 100 -- What is the maximum time the mechanic can take to stop (in seconds)

Config.CommandDelay = 15 -- how long do you have to wait between command use (in seconds)

Config.MechanicModel = "s_m_y_dockwork_01" -- Change the mechanic (https://docs.fivem.net/docs/game-references/ped-models/)
Config.MechanicVehicle = "utillitruck3" -- Change the car from the mechanic

Config.Message = function(message) -- Change notification
    ESX.ShowNotification(message)
end

-- Draw-Settings
Config.EnableDraw = true -- If this setting is false, a one-time notification is sent instead of the displayed text

Config.DrawColor = {r = 255, g = 0, b = 0, a = 255} -- Text color

Config.DrawSize = 0.3 -- Text size
Config.DrawX = 0.4 -- Position of the text on the X axis
Config.DrawY = 0.005 -- Position of the text on the Y axis

-- Mechanic Insurance
Config.MechanicInsurance = true -- If the insurance system is to be activated

Config.PayIntervall = 15 -- how often you have to pay (in minutes)

Config.MechanicInsuranceNPC = "s_m_y_construct_01" -- npc model -> https://docs.fivem.net/docs/game-references/ped-models/#story-scenario-male
Config.MechanicInsuranceLocation = vector4(495.7212, -1340.4844, 29.3132, 352.1842) -- coords for the npc

Config.FillInsuranceText = 32 -- Customize the background of 3D text

-- Blip Settings
Config.EnableBlip = true -- activate blip

Config.BlipName = "Car insurance" -- name from blip

Config.BlipCoords = vector3(495.7212, -1340.4844, 29.3132) -- coords from the blip
Config.BlipSprite = 225 -- look from the blip (https://docs.fivem.net/docs/game-references/blips/)
Config.BlipSize = 1.0 -- sets the blip size
Config.BlipColour = 43 -- sets the color of the blip (https://docs.fivem.net/docs/game-references/blips/)

--[[
    Important: If you have selected percentages, the percentages will be calculated on the current salary when joining,
    if it is terminated in the meantime, it will only be updated after the next rejoin
]]

-- Basic Settings
Config.MechanicInsuranceBasic = "fixed" -- fixed price or percentage (fixed/percentage) -> specify percentages like this: 1 = 1%; 10 = 10%
Config.MechanicInsuranceBasicCost = 100

Config.RequiredMechanicBasic = 0 -- What is the maximum number of mechanics that can be on duty for an NPC mechanics to come (0 = the system only activates when there is no longer a mechanics online)
Config.MechanicDurationBasic = 60 -- Time until the mechanic is on site (in seconds)
Config.RepairDurationBasic = 45 -- Repair Duration (in seconds)

-- Dafault Settings
Config.MechanicInsuranceDefault = "fixed" -- fixed price or percentage (fixed/percentage) -> specify percentages like this: 1 = 1%; 10 = 10%
Config.MechanicInsuranceDefaultCost = 250

Config.RequiredMechanicDefault = 1 -- What is the maximum number of mechanics that can be on duty for an NPC mechanics to come (0 = the system only activates when there is no longer a mechanics online)
Config.MechanicDurationDefault = 120 -- Time until the mechanic is on site (in seconds)
Config.RepairDurationDefault = 30 -- Repair Duration (in seconds)

-- Premium Settings
Config.MechanicInsurancePremium = "fixed" -- fixed price or percentage (fixed/percentage) -> specify percentages like this: 1 = 1%; 10 = 10%
Config.MechanicInsurancePremiumCost = 500

Config.RequiredMechanicPremium = 2 -- What is the maximum number of mechanics that can be on duty for an NPC mechanics to come (0 = the system only activates when there is no longer a mechanics online)
Config.MechanicDurationPremium = 60 -- Time until the mechanic is on site (in seconds)
Config.RepairDurationPremium = 15 -- Repair Duration (in seconds)

-- Settings you only need if you set Config.MechanicInsurance = false
Config.MechanicCost = 1000 -- the following amount will be charged for the one-time treatment

Config.RequiredMechanic = 1 -- What is the maximum number of mechanics that can be on duty for an NPC mechanics to come (0 = the system only activates when there is no longer a mechanics online)
Config.MechanicDuration = 120 -- Time until the mechanic is on site (in seconds)
Config.RepairDuration = 60 -- Repair Duration (in seconds)

Optimization

  • IDLE: 0.00ms

  • RUNNING: 0.01ms

Further Information

SHOP: vsMechanicSystem

This resource is using the FiveM Asset Escrow system

Code is accessible No
Subscription-based No
Lines (approximately) 1000
Requirements ESX
Support Yes
Config Merger
Have you tried Config Merger? Merge your configs easily