MSK AI Medic
Simple AI Medic NPC that try to revive you
Description
- When you are dead and no Medic is Online then you can press the hotkey
- An NPC will then come to you with a vehicle and try to revive you
- You can set a chance whether the NPC manages to revive you or not
- You can set whether the NPC tries again after a failed attempt or leaves afterwards.
- Fee for reviving
- Discord Logs
- Support for visn_are
Config
Config = {}
----------------------------------------------------------------
Config.Locale = 'de'
Config.VersionChecker = true
----------------------------------------------------------------
-- Add the Webhook Link in server.lua
Config.DiscordLog = true
Config.botColor = "6205745" -- https://www.mathsisfun.com/hexadecimal-decimal-colors.html
Config.botName = "MSK Scripts"
Config.botAvatar = "https://i.imgur.com/PizJGsh.png"
----------------------------------------------------------------
Config.Hotkey = {key = 38, label = 'E'}
Config.SpawnRadius = 150 -- default: 150 meters
Config.DrivingStyle = 786475 -- default: 786475 // https://vespura.com/fivem/drivingstyle/
----------------------------------------------------------------
Config.RevivePrice = 5000 -- Price to get revived
Config.ReviveDuration = 10 -- in seconds // default: 10 seconds
Config.ReviveChance = {
enable = true, -- Set false that you always get revived
chance = 50, -- Percent to get revived
tryagain = false, -- Set to true if the NPC should try it again if he failed
howOften = 3, -- If NPC failed to revive the player then he tries up to 3 times more
}
----------------------------------------------------------------
Config.VisnAre = GetResourceState("visn_are") ~= "missing"
----------------------------------------------------------------
Config.Jobs = {
amount = 0,
jobs = {
'ambulance',
'fire_department',
}
}
----------------------------------------------------------------
Config.Medic = {
npcName = 'Doc. Holiday',
pedmodel = 's_m_m_doctor_01',
vehmodel = 'ambulance',
}
----------------------------------------------------------------
Config.ProgressBar = function()
exports.msk_core:ProgressStart(10000, 'Du wirst nun wiederbelebt...')
end
Config.ReviveTrigger = function()
if Config.VisnAre then
TriggerEvent('visn_are:resetHealthBuffer')
else
TriggerEvent('esx_ambulancejob:revive')
end
end
Requirements
- ESX Legacy
- esx_ambulancejob - (not needed if you use visn_are)
- visn_are - (This is optional)
My other Scripts
Paid
- [ESX] MSK Armor | Multiple Armor Vests
- [ESX] MSK Banking with NativeUI
- [ESX] MSK Crafting with NativeUI
- [ESX] MSK Garage NativeUI - Garage & Impounds
- [ESX] MSK Garage NUI - Garage & Impounds
- [ESX] MSK Handcuffs | Realistic Handcuffs
- [ESX] MSK Shopsystem with NativeUI & Database Feature
- [ESX/QBCore] MSK Simcard | Change your phonenumber
- [ESX] MSK WeaponAmmo | Clips, Components & Tints