[PAID] vsMedicSystem

[PAID] vsMedicSystem

ESX Banner

Description

The vsMedicSystem, guarantees your roleplay server a permanently present medic for your players. This way, RP situations cannot be endangered by the understaffing of the LSMD.

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

-- Help-Settings
Config.HelpText = true -- shows the player how to get help

Config.HelpKey = 74 -- Key: H (interaction button) -> https://docs.fivem.net/docs/game-references/controls/
Config.HelpCommand = "requestmedic" -- name of the command for help

Config.HelpNPC = "s_m_m_doctor_01" -- npc model -> https://docs.fivem.net/docs/game-references/ped-models/#story-scenario-male
Config.HelpVehicle = "ambulance" -- vehicle model (spawn-name)

Config.SpawnRange = 100 -- how far away the car spawns

-- General-Settings
Config.JobName = 'ambulance' -- Write here the job name that will be checked if there are enough medics online

Config.Message = function(txt) -- notify settings
    ESX.ShowNotification(txt)
end

-- Progress-Bar
Config.EnableCustom = false -- activate your progressbar
Config.CustomProgressBar = function(duration)
    -- look readme
end

-- Medical Insurance
Config.MedicalInsurance = true -- You can deactivate the entire health insurance system
Config.CombatLogSystem = true -- Set this to false if your players automatically bleed out and are alive again after rejoining. || Extra information -> If your players spawn dead again and you don't want that to happen, I can recommend the vsRefundSystem: https://vibescripts.tebex.io/package/5565476

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

Config.MedicalInsuranceNPC = "s_m_m_doctor_01" -- npc model -> https://docs.fivem.net/docs/game-references/ped-models/#story-scenario-male
Config.MedicalInsuranceLocation = vector4(307.7221, -1433.4835, 29.9655, 137.9689) -- coords for the npc

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

--[[
    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.MedicalInsuranceBasic = "fixed" -- fixed price or percentage (fixed/percentage) -> specify percentages like this: 1 = 1%; 10 = 10%
Config.MedicalInsuranceBasicCost = 100

Config.RequiredMedicsBasic = 0 -- What is the maximum number of medics that can be on duty for an NPC medic to come (0 = the system only activates when there is no longer a medic online)
Config.MedicDurationBasic = 180 -- Time until the medic is on site (in seconds)
Config.ReviveDurationBasic = 45 -- Revive Duration (in seconds)

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

Config.RequiredMedicsDefault = 1 -- What is the maximum number of medics that can be on duty for an NPC medic to come (0 = the system only activates when there is no longer a medic online)
Config.MedicDurationDefault = 120 -- Time until the medic is on site (in seconds)
Config.ReviveDurationDefault = 30 -- Revive Duration (in seconds)

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

Config.RequiredMedicsPremium = 2 -- What is the maximum number of medics that can be on duty for an NPC medic to come (0 = the system only activates when there is no longer a medic online)
Config.MedicDurationPremium = 60 -- Time until the medic is on site (in seconds)
Config.ReviveDurationPremium = 15 -- Revive Duration (in seconds)

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

Config.RequiredMedics = 1 -- What is the maximum number of medics that can be on duty for an NPC medic to come (0 = the system only activates when there is no longer a medic online)
Config.MedicDuration = 120 -- Time until the medic is on site (in seconds)
Config.ReviveDuration = 60 -- Revive Duration (in seconds)

Optimization

  • IDLE: 0.00ms

  • RUNNING: 0.00ms

Further Information

SHOP: vsMedicSystem

This resource is using the FiveM Asset Escrow system

Code is accessible No
Subscription-based No
Lines (approximately) 800
Requirements ESX & ESX_Ambulancejob
Support Yes
54 Likes