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. Ambulance Job

Config Files

Main Config
Config = {}

Config.Debug = false
Config.Framework = 'ESX' -- ESX / QB / QBOX
Config.Target = 'ox_target' -- ox_target / qb-target
Config.Language = 'en' -- pl / en
Config.LastStand = {
    isEnabled = true, -- last stand enabled?
    time = 300, -- time in seconds for bleeding out
    enableMovement = true -- can move while last stand?
}
Config.DisableVoiceOnDeath = false -- disable voice chat on death [not on last stand]?
Config.DamageUIBind = 'TAB' -- set to false if you dont want

lib.locale(Config.Language or 'en')

Config.Jobs = { -- Which jobs can interact, use lockers, etc
    ['ambulance'] = 0
}

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

Config.CustomDeathScreen = function(state, time, deadStage)
    if deadStage == 1 then
        time = Config.LastStand.time
    end

    SendNUIMessage({action = 'DeathScreen', data = {state = state, time = time, deadStage = deadStage}})
end

Config.DisableDeathAnimationOn = function()
    local playerState = LocalPlayer.state
    if playerState.carriedBy then
        return true
    end

    return false
end

Config.TemporaryDeath = {
    enabled = true,
    weapons = {
        [`WEAPON_BAT`] = true,
        [`WEAPON_UNARMED`] = true,
        [`WEAPON_NIGHTSTICK`] = true,
    },
    time = 10, -- after 10 seconds player will stand up
    healthAfter = 100 -- 50% hp [max is 200]
}

Config.Blips = {
    {
        sprite = 61,
        color = 1,
        scale = 0.95,
        display = 2,
        label = 'Hospital',
        coords = vector3(298.6705, -584.4561, 43.2609)
    }
}

Config.ToggleDuty = { -- where medics can toggle duty status
    {
        coords = vector3(311.86, -593.49, 43.1), radius = 0.75,
        allowedJobs = {['ambulance'] = 0},
    }
}

Config.Shops = {
    ['MedicShop'] = {
        label = 'Medic Shop',
        locations = {
            vector3(306.63, -602.25, 43.45)
        },
        requiredDuty = false,
        radius = 0.75,
        allowedJobs = {['ambulance'] = 0}, -- which jobs can access shop
        inventory = {
            {name = 'ice_bag', price = 0, amount = 99999},
            {name = 'adrenaline', price = 0, amount = 99999},
            {name = 'bandage', price = 0, amount = 99999},
            {name = 'radio', price = 0, amount = 99999},
            {name = 'gps', price = 0, amount = 99999},
            {name = 'medic_bag', price = 0, amount = 99999},
        },
    }
}

Config.Radio = {
    [4] = {
        jobs = {['ambulance'] = true},
        label = "EMS"
    },
    [5] = {
        jobs = {['ambulance'] = true},
        label = "EMS"
    },
    [6] = {
        jobs = {['ambulance'] = true},
        label = "EMS"
    },
}

Config.OnPlayerDeath = function()
    LocalPlayer.state.invBusy = true
    LocalPlayer.state.invHotkeys = false
    LocalPlayer.state.canUseWeapons = false
    lib.disableRadial(true)
    lib.disableControls:Add({
        24, 257, 25, 263, 45, 22, 44, 37, 23, 21, 288, 289, 
        170, 167, 73, 199, 59, 71, 72, 36, 47, 264, 257, 140, 141, 142, 43, 75, 32, 33, 34, 35, 45
    })
    lib.disableRadial(true)
    if GetResourceState('ox_target') == 'started' then
        exports['ox_target']:disableTargeting(true)
    elseif GetResourceState('qb-target') == 'started' then
        exports['qb-target']:AllowTargeting(false)
    end
    if GetResourceState('lb-phone') == 'started' then
        exports["lb-phone"]:ToggleDisabled(true)
    end
end

Config.OnPlayerRevive = function()
    LocalPlayer.state.invBusy = false
    LocalPlayer.state.invHotkeys = true
    LocalPlayer.state.canUseWeapons = true
    if Config.Framework == 'ESX' then
        TriggerEvent('esx_basicneeds:resetStatus')
        TriggerServerEvent('esx:onPlayerSpawn')
        TriggerEvent('esx:onPlayerSpawn')
        TriggerEvent('playerSpawned')
        ESX.SetPlayerData('dead', false)
    else
        TriggerServerEvent('hud:server:RelieveStress', 100)
        TriggerServerEvent('hospital:server:resetHungerThirst')
    end
    lib.disableRadial(false)
    lib.disableControls:Clear({
        24, 257, 25, 263, 45, 22, 44, 37, 23, 21, 288, 289, 
        170, 167, 73, 199, 59, 71, 72, 36, 47, 264, 257, 140, 141, 142, 43, 75, 32, 33, 34, 35, 45
    })
    lib.disableRadial(false)
    if GetResourceState('ox_target') == 'started' then
        exports['ox_target']:disableTargeting(false)
    elseif GetResourceState('qb-target') == 'started' then
        exports['qb-target']:AllowTargeting(true)
    end
    if GetResourceState('lb-phone') == 'started' then
        exports["lb-phone"]:ToggleDisabled(false)
    end
end
Blood Config
Config.Blood = {
    enabled = true, -- set to false to disable
    images = {'images/blood_1.png', 'images/blood_2.png', 'images/blood_3.png', 'images/blood_4.png'},
    resetTime = 10000 -- blood photo will be reseted to 1st after 10 seconds without getting hit
}
Medicbag Config
Config.MedicBag = {
    model = 'xm_prop_x17_bag_med_01a',
    isVisible = true, -- set to false if you want to remove attached bag from hand
    offsets = {
        attach = vector3(0.35, 0.0, 0.01),
        rotation = vector3(0.0, 270.0, -120.0)
    },
    durations = {
        putdown = 1300,
        pickup = 1300
    },
    animations = {
        putdown = {
            dict = 'pickup_object',
            clip = 'pickup_low',
            flag = 1
        },
        pickup = {
            dict = 'pickup_object',
            clip = 'pickup_low',
            flag = 1
        }
    },
    slots = 20,
    weight = 100000,
    restricted = true -- only Config.Jobs can open bag / set to false if everyone
}
Lockers Config
Config.Lockers = {}

Config.Lockers.Targets = {
    ['Pillbox'] = {
        coords = vector3(306.8275, -601.8389, 43.2841),
        radius = 0.65,
        drawSprite = true,
        options = {
            {
                name = 'Pillbox_Stash',
                label = locale('private_locker'),
                icon = 'fa-solid fa-box',
                distance = 2,
                groups = {['ambulance'] = 0},
                isLocker = true,
                slots = 50,
                weight = 500000,
                isShared = false, -- true = same for everyone
                onSelect = function()
                    if GetResourceState('ox_inventory') == 'started' then
                        exports['ox_inventory']:openInventory('stash', 'Pillbox_Stash') -- stash id = option name
                    else
                        TriggerServerEvent("inventory:server:OpenInventory", "stash", 'Pillbox_Stash', {
                            maxweight = 500000,
                            slots = 50,
                        })
                        TriggerEvent("inventory:client:SetCurrentStash", 'Pillbox_Stash')
                    end
                end
            },
        }
    }
}

Config.OutfitsAccess = { -- permissions for /medic_outfit
    ['ambulance'] = 0,
}

Config.Wardrobes = {
    ['Pillbox'] = {
        coords = vector3(302.12, -599.63, 43.5),
        radius = 0.75,
        drawSprite = false,
    }
}
Interactions Config
Config.Interactions = {
    ['PlayerOnBed'] = {
        label = locale('put_on_bed'),
        icon = 'fa-solid fa-bed',
        distance = 2,
        onSelect = function(data)
            local entity = type(data) == 'number' and data or data.entity
            local targetId = GetPlayerServerId(NetworkGetPlayerIndexFromPed(entity))
            TriggerServerEvent('p_ambulancejob:server:PlayerOnBed', {
                targetId = targetId
            })
        end,
        canInteract = function(entity)
            local targetId = GetPlayerServerId(NetworkGetPlayerIndexFromPed(entity))
            local stateBag = Player(targetId).state
            if not stateBag.isDead or stateBag.playerOnBed then
                return false
            end
            
            local bed = utils.getClosestBed()
            if bed then
                return true
            end

            return false
        end
    },
    ['TakePlayerFromBed'] = {
        label = locale('take_player_from_bed'),
        icon = 'fa-solid fa-bed',
        distance = 2,
        onSelect = function(data)
            local entity = type(data) == 'number' and data or data.entity
            local targetId = GetPlayerServerId(NetworkGetPlayerIndexFromPed(entity))
            TriggerServerEvent('p_ambulancejob:server:TakePlayerFromBed', {
                targetId = targetId
            })
        end,
        canInteract = function(entity)
            local targetId = GetPlayerServerId(NetworkGetPlayerIndexFromPed(entity))
            local stateBag = Player(targetId).state
            if stateBag.playerOnBed then
                return true
            end

            return false
        end
    },
    ['CheckDamages'] = {
        label = locale('check_damages'),
        icon = 'fa-solid fa-bandage',
        distance = 2,
        groups = Config.Jobs,
        onSelect = function(data)
            local entity = type(data) == 'number' and data or data.entity
            local targetId = GetPlayerServerId(NetworkGetPlayerIndexFromPed(entity))
            initDamagesMenu(targetId, Player(targetId).state)
        end
    },
    ['StartDragPlayer'] = {
        label = locale('drag'),
        icon = 'fa-solid fa-people-pulling',
        distance = 2,
        onSelect = function(data)
            local entity = type(data) == 'number' and data or data.entity
            local targetId = GetPlayerServerId(NetworkGetPlayerIndexFromPed(entity))
            TriggerServerEvent('p_ambulancejob:server:DragPlayer', {state = true, player = targetId})
        end,
        canInteract = function(entity)
            if GetResourceState('p_policejob') ~= 'missing' then
                return false
            end

            if LocalPlayer.state.draggingPlayer then
                return false
            end

            local targetId = GetPlayerServerId(NetworkGetPlayerIndexFromPed(entity))
            local targetState = Player(targetId).state
            if targetState.isCuffed or targetState.isDead and not targetState.draggedBy then
                return true
            end

            return false
        end
    },
    ['StopDragPlayer'] = {
        label = locale('stop_drag'),
        icon = 'fa-solid fa-people-pulling',
        distance = 2,
        onSelect = function(data)
            local entity = type(data) == 'number' and data or data.entity
            local targetId = GetPlayerServerId(NetworkGetPlayerIndexFromPed(entity))
            TriggerServerEvent('p_ambulancejob:server:DragPlayer', {state = false, player = targetId})
        end,
        canInteract = function(entity)
            if GetResourceState('p_policejob') ~= 'missing' then
                return false
            end

            local targetId = GetPlayerServerId(NetworkGetPlayerIndexFromPed(entity))
            local targetState = Player(targetId).state
            if targetState.draggedBy and targetState.draggedBy == cache.serverId then
                return true
            end

            return false
        end
    },
    ['OutFromVehicle'] = {
        label = locale('out_vehicle'),
        icon = 'fa-solid fa-car',
        distance = 2,
        onSelect = function(data, seat)
            local entity = type(data) == 'number' and data or data.entity
            local targetId = GetPlayerServerId(NetworkGetPlayerIndexFromPed(GetPedInVehicleSeat(entity, seat)))
            TriggerServerEvent('p_ambulancejob:server:OutVehicle', {seat = seat, player = targetId})
        end,
        canInteract = function(entity, seat)
            local targetId = GetPlayerServerId(NetworkGetPlayerIndexFromPed(GetPedInVehicleSeat(entity, seat)))
            local targetState = Player(targetId).state

            if targetState.isCuffed or targetState.isDead then
                return true
            end

            return false
        end
    },
    ['PutInVehicle'] = { -- dont touch this
        label = locale('put_in_vehicle'),
        icon = 'fa-solid fa-car',
        distance = 2,
        onSelect = function(data, seat)
            local entity = type(data) == 'number' and data or data.entity
            local targetId = GetPlayerServerId(NetworkGetPlayerIndexFromPed(entity))
            TriggerServerEvent('p_ambulancejob:server:PutInVehicle', {seat = seat, player = targetId})
        end,
        canInteract = function(entity, seat)
            if LocalPlayer.state.draggingPlayer then
                return false
            end

            local vehicle, coords = lib.getClosestVehicle(GetEntityCoords(cache.ped), 4.0, false)

            if not vehicle or vehicle == 0 or not IsVehicleSeatFree(vehicle, seat) then
                return false
            end
            
            local targetId = GetPlayerServerId(NetworkGetPlayerIndexFromPed(entity))
            local targetState = Player(targetId).state
            if targetState.draggedBy then
                return false
            end

            if targetState.isDead then
                return true
            end

            return false
        end
    },
    ['StartDragDeadPlayer'] = {
        label = locale('drag_dead_player'),
        icon = 'fa-solid fa-skull',
        distance = 2,
        onSelect = function(data, seat)
            local entity = type(data) == 'number' and data or data.entity
            local targetId = GetPlayerServerId(NetworkGetPlayerIndexFromPed(entity))
            TriggerServerEvent('p_ambulancejob:server:dragDeadPlayer', {
                state = true, player = targetId
            })
        end,
        canInteract = function(entity, seat)
            if LocalPlayer.state.draggingPlayer then
                return false
            end
            
            local targetId = GetPlayerServerId(NetworkGetPlayerIndexFromPed(entity))
            local targetState = Player(targetId).state
            if targetState.draggedBy then
                return false
            end

            if targetState.isDead then
                return true
            end

            return false
        end
    },
    ['UseAdrenalinePlayer'] = {
        label = locale('use_adrenaline_player'),
        icon = 'fa-solid fa-syringe',
        distance = 2,
        items = 'adrenaline',
        onSelect = function(data, seat)
            local entity = type(data) == 'number' and data or data.entity
            local targetId = GetPlayerServerId(NetworkGetPlayerIndexFromPed(entity))
            local syringeProp = playAdrenaline(13000)
            if not syringeProp then return end
            if lib.progressBar({
                duration = 15000,
                label = locale('using_adrenaline'),
                useWhileDead = false,
                canCancel = true,
                disable = {
                    car = true,
                    move = true,
                    combat = true
                },
            }) then
                TriggerServerEvent('p_ambulancejob:server:useAdrenalinePlayer', {
                    targetId = targetId,
                    health = 100 -- health after revive
                })
            end
            ClearPedTasks(cache.ped)
            DeleteEntity(syringeProp)
        end,
        canInteract = function(entity, seat)
            if LocalPlayer.state.draggingPlayer then
                return false
            end
            
            local targetId = GetPlayerServerId(NetworkGetPlayerIndexFromPed(entity))
            local targetState = Player(targetId).state
            if targetState.isDead and targetState.deathStage == 1 then
                return true
            end

            return false
        end
    }
}

Config.DisableDragKeys = {
    24, 257, 25, 263, 45, 22, 44, 37, 23, 21, 288, 289, 170, 75,
    167, 73, 199, 59, 71, 72, 47, 264, 257, 140, 141, 142, 143
}

Config.OnStartPlayerDrag = function(serverId, playerPed)
    LocalPlayer.state.invBusy = true
    LocalPlayer.state.invHotkeys = false
    LocalPlayer.state.canUseWeapons = false
    lib.disableRadial(true)
    if GetResourceState('ox_target') == 'started' then
        exports['ox_target']:disableTargeting(true)
    elseif GetResourceState('qb-target') == 'started' then
        exports['qb-target']:AllowTargeting(false)
    end
    if GetResourceState('lb-phone') == 'started' then
        exports["lb-phone"]:ToggleDisabled(true)
    end
end

Config.OnStopPlayerDrag = function(serverId, playerPed)
    LocalPlayer.state.invBusy = false
    LocalPlayer.state.invHotkeys = true
    LocalPlayer.state.canUseWeapons = true
    lib.disableRadial(false)
    if GetResourceState('ox_target') == 'started' then
        exports['ox_target']:disableTargeting(false)
    elseif GetResourceState('qb-target') == 'started' then
        exports['qb-target']:AllowTargeting(true)
    end
    if GetResourceState('lb-phone') == 'started' then
        exports["lb-phone"]:ToggleDisabled(false)
    end
end
GPS Config
Config.GPS = {}

Config.GPS.NeedDuty = true -- true | false (need to be on duty to turn on/off gps?)

Config.GPS.DutyCheck = function()
    if GetResourceState('piotreq_jobcore') == 'started' then
        local dutyData = exports['piotreq_jobcore']:GetDutyData()
        if dutyData.status ~= 1 then
            return false
        end
    end

    return true
end

Config.GPS.ShortRange = true -- only visible closests blips on minimap

Config.GPS.RefreshRate = 2500 -- 2.5s

Config.GPS.Jobs = {
    ['ambulance'] = {
        color = 59,
        lights = 63,
        display = 'EMS',
        types = {
            onFoot = {
                color = 59,
                lights = 1,
                sprite = 1,
                scale = 1.1,
                heading = true
            },
            inVeh = {
                color = 59,
                lights = 1,
                sprite = 56,
                scale = 1.1,
                heading = true
            },
            boat = {
                color = 59,
                lights = 1,
                sprite = 427,
                scale = 1.1,
                heading = true
            },
            plane = {
                color = 59,
                lights = 1,
                sprite = 43,
                scale = 1.1,
                heading = true
            },
            heli = {
                color = 59,
                lights = 1,
                sprite = 43,
                scale = 1.1,
                heading = true
            },
            bike = {
                color = 59,
                lights = 1,
                sprite = 1,
                scale = 1.1,
                heading = true
            },
        }
    },
}
Elevators Config
Config.Elevators = {
    ['Pillbox'] = {
        {
            coords = vec3(333, -596, 43.0),
            radius = 1.0,
            options = {
                {
                    label = 'Roof',
                    coords = vector4(339.1444, -583.9356, 74.1617, 248.2303)
                },
                {
                    label = 'Garage',
                    coords = vector4(346.0809, -582.6805, 28.7968, 248.2392)
                }
            }
        },
        {
            coords = vec3(338.6111, -583.8237, 74.1617),
            radius = 1.0,
            options = {
                {
                    label = 'Hospital',
                    coords = vector4(331.7267, -595.5124, 43.2840, 70.8288)
                },
                {
                    label = 'Garage',
                    coords = vector4(346.0809, -582.6805, 28.7968, 248.2392)
                }
            }
        },
        {
            coords = vec3(345.6941, -582.5328, 28.7968),
            radius = 1.0,
            options = {
                {
                    label = 'Hospital',
                    coords = vector4(331.7267, -595.5124, 43.2840, 70.8288)
                },
                {
                    label = 'Roof',
                    coords = vector4(339.1444, -583.9356, 74.1617, 248.2303)
                },
            }
        },
    }
}
Damages Config
Config.Damages = {}

Config.Damages.Actions = {
    ['head'] = function(value)
        utils.fadeOutScreen(100)
        Citizen.Wait(500)
        utils.fadeInScreen(100)
    end
}

Config.Damages.Weapons = {
    [`WEAPON_UNARMED`] = { locale("been_beaten"), locale("beaten") },
    [`WEAPON_KNIFE`] = { locale("been_stabbed"), locale("stabbed") },
    [`WEAPON_NIGHTSTICK`] = { locale("been_hit", locale("nightstick")), locale("beaten") },
    [`WEAPON_HAMMER`] = { locale("been_struck", locale("hammer")), locale("stabbed") },
    [`WEAPON_BAT`] = { locale("been_hit", locale("bat")), locale("beaten") },
    [`WEAPON_GOLFCLUB`] = { locale("been_whacked", locale("golfclub")), locale("beaten") },
    [`WEAPON_CROWBAR`] = { locale("been_struck", locale("crowbar")), locale("stabbed") },
    [`WEAPON_PISTOL`] = { locale("been_shot", locale("pistol")), locale("shot") },
    [`WEAPON_COMBATPISTOL`] = { locale("been_shot", locale("combatpistol")), locale("shot") },
    [`WEAPON_APPISTOL`] = { locale("been_shot", locale("appistol")), locale("shot") },
    [`WEAPON_PISTOL50`] = { locale("been_shot", locale("pistol50")), locale("shot") },
    [`WEAPON_MICROSMG`] = { locale("been_shot", locale("microsmg")), locale("shot") },
    [`WEAPON_SMG`] = { locale("been_shot", locale("smg")), locale("shot") },
    [`WEAPON_ASSAULTSMG`] = { locale("been_shot", locale("assaultsmg")), locale("shot") },
    [`WEAPON_ASSAULTRIFLE`] = { locale("been_shot", locale("assaultrifle")), locale("shot") },
    [`WEAPON_CARBINERIFLE`] = { locale("been_shot", locale("carbinerifle")), locale("shot") },
    [`WEAPON_ADVANCEDRIFLE`] = { locale("been_shot", locale("advancedrifle")), locale("shot") },
    [`WEAPON_MG`] = { locale("been_shot", locale("mg")), locale("shot") },
    [`WEAPON_COMBATMG`] = { locale("been_shot", locale("combatmg")), locale("shot") },
    [`WEAPON_PUMPSHOTGUN`] = { locale("been_shot", locale("pumpshotgun")), locale("shot") },
    [`WEAPON_SAWNOFFSHOTGUN`] = { locale("been_shot", locale("sawnoffshotgun")), locale("shot") },
    [`WEAPON_ASSAULTSHOTGUN`] = { locale("been_shot", locale("assaultshotgun")), locale("shot") },
    [`WEAPON_BULLPUPSHOTGUN`] = { locale("been_shot", locale("bullpupshotgun")), locale("shot") },
    [`WEAPON_SNIPERRIFLE`] = { locale("been_shot", locale("sniperrifle")), locale("shot") },
    [`WEAPON_HEAVYSNIPER`] = { locale("been_shot", locale("heavysniper")), locale("shot") },
    [`WEAPON_REMOTESNIPER`] = { locale("been_shot", locale("remotesniper")), locale("shot") },
    [`WEAPON_GRENADELAUNCHER`] = { locale("been_hit", locale("grenadelauncher")), locale("beaten") },
    [`WEAPON_GRENADE`] = { locale("been_blown_up", locale("grenade")), locale("burn") },
    [`WEAPON_STICKYBOMB`] = { locale("been_blown_up", locale("stickybomb")), locale("burn") },
    [`WEAPON_MOLOTOV`] = { locale("been_set_on_fire", locale("molotov")), locale("burn") },
    [`WEAPON_RPG`] = { locale("been_hit", locale("rpg")), locale("beaten") },
    [`WEAPON_MINIGUN`] = { locale("been_shot", locale("minigun")), locale("shot") },
    [`WEAPON_GRENADELAUNCHER_SMOKE`] = { locale("been_hit", locale("grenadelauncher_smoke")), locale("beaten") },
    [`WEAPON_RAYPISTOL`] = { locale("been_shot", locale("raypistol")), locale("shot") },
    [`WEAPON_RAYCARBINE`] = { locale("been_shot", locale("raycarbine")), locale("shot") },
    [`WEAPON_RAYMINIGUN`] = { locale("been_shot", locale("rayminigun")), locale("shot") },
    [`WEAPON_RAYSHOTGUN`] = { locale("been_shot", locale("rayshotgun")), locale("shot") },
    [`WEAPON_RAYASSAULTRIFLE`] = { locale("been_shot", locale("rayassaultrifle")), locale("shot") },
    [-842959696] = { locale("been_fallen_to_death"), locale("beaten") },
}

Config.Damages.Bones = {
    ["0"] = { 
        id = "hip", 
        label = locale('hipbone'),
        values = {
            ['default'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['10'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['20'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['30'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['40'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['50'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['60'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['70'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['80'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['90'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['100'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
        },
        part = 'torso'
    },
    ["10706"] = { 
        id = "rclavicle", 
        label = locale('right_clavicle'),
        values = {
            ['default'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['10'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['20'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['30'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['40'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['50'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['60'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['70'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['80'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['90'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['100'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
        },
        part = 'right_arm' -- for ui
    },
    ["64729"] = { 
        id = "lclavicle", 
        label = locale('left_clavicle'),
        values = {
            ['default'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['10'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['20'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['30'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['40'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['50'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['60'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['70'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['80'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['90'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['100'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
        },
        part = 'left_arm' -- for ui
    },
    ["14201"] = { 
        id = "lfoot", 
        label = locale('left_foot'), 
        values = {
            ['default'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['10'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['20'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['30'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['40'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['50'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['60'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['70'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['80'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['90'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['100'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
        },
        part = 'left_leg' -- for ui
    },
    ["18905"] = { 
        id = "lhand", 
        label = locale('left_hand'), 
        values = {
            ['default'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['10'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['20'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['30'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['40'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['50'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['60'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['70'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['80'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['90'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['100'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
        },
        part = 'left_arm' -- for ui
    },
    ["24816"] = { 
        id = "lbdy", 
        label = locale('lower_chest'), 
        values = {
            ['default'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['10'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['20'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['30'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['40'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['50'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['60'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['70'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['80'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['90'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['100'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
        },
        part = 'torso' -- for ui
    },
    ["24817"] = { 
        id = "ubdy", 
        label = locale('upper_chest'),
        values = {
            ['default'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['10'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['20'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['30'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['40'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['50'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['60'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['70'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['80'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['90'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['100'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
        },
        part = 'torso' -- for ui
    },
    ["24818"] = { 
        id = "shoulder", 
        label = locale('shoulder'), 
        values = {
            ['default'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['10'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['20'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['30'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['40'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['50'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['60'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['70'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['80'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['90'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['100'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
        },
        part = 'left_arm' -- for ui
    },
    ["28252"] = { 
        id = "rforearm", 
        label = locale('rforearm'), 
        values = {
            ['default'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['10'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['20'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['30'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['40'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['50'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['60'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['70'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['80'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['90'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['100'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
        },
        part = 'right_arm' -- for ui
    },
    ["36864"] = {
        id = "rleg",
        label = locale('right_leg'),
        values = {
            ['default'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['10'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['20'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['30'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['40'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['50'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['60'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['70'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['80'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['90'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['100'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
        },
        part = 'right_leg' -- for ui
    },                           
    ["39317"] = { 
        id = "neck", 
        label = locale('neck'), 
        values = {
            ['default'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['10'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['20'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['30'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['40'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['50'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['60'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['70'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['80'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['90'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['100'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
        },
        part = 'head' -- for ui
    },
    ["40269"] = { 
        id = "ruparm", 
        label = locale('ruparm'), 
        values = {
            ['default'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['10'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['20'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['30'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['40'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['50'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['60'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['70'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['80'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['90'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['100'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
        },
        part = 'right_arm' -- for ui
    },
    ["45509"] = { 
        id = "luparm", 
        label = locale('luparm'), 
        values = {
            ['default'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['10'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['20'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['30'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['40'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['50'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['60'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['70'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['80'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['90'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['100'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
        },
        part = 'left_arm' -- for ui
    },
    ["51826"] = { 
        id = "rthigh", 
        label = locale('rthigh'), 
        values = {
            ['default'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['10'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['20'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['30'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['40'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['50'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['60'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['70'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['80'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['90'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['100'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
        },
        part = 'right_leg' -- for ui
    },
    ["52301"] = { 
        id = "rfoot", 
        label = locale('right_foot'), 
        values = {
            ['default'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['10'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['20'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['30'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['40'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['50'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['60'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['70'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['80'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['90'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['100'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
        },
        part = 'right_leg' -- for ui
    },
    ["57005"] = { 
        id = "rhand", 
        label = locale('right_hand'), 
        values = {
            ['default'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['10'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['20'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['30'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['40'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['50'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['60'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['70'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['80'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['90'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['100'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
        },
        part = 'right_arm' -- for ui
    },
    ["57597"] = { 
        id = "lumbar", 
        label = locale('lumbar'), 
        values = {
            ['default'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['10'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['20'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['30'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['40'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['50'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['60'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['70'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['80'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['90'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['100'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
        },
        part = 'torso' -- for ui
    },
    ["58271"] = { 
        id = "lthigh", 
        label = locale('lthigh'), 
        values = {
            ['default'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['10'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['20'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['30'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['40'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['50'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['60'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['70'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['80'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['90'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['100'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
        },
        part = 'left_leg' -- for ui
    },
    ["61163"] = { 
        id = "lforearm", 
        label = locale('lforearm'),
        values = {
            ['default'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['10'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['20'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['30'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['40'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['50'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['60'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['70'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['80'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['90'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['100'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
        },
        part = 'left_arm' -- for ui
    },
    ["63931"] = { 
        id = "lleg", 
        label = locale('left_leg'),
        values = {
            ['default'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['10'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['20'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['30'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['40'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['50'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['60'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['70'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['80'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['90'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['100'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
        },
        part = 'left_leg' -- for ui
    },
    ["31086"] = { 
        id = "head", 
        label = locale('head'), 
        onDamage = 'head', -- Config.Damages.Actions['head']
        actionTime = 5000, -- action will be active for 5 seconds after hit
        values = {
            ['default'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['10'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['20'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['30'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['40'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['50'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['60'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['70'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['80'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['90'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
            ['100'] = {
                label = locale('bruise'),
                items = {['ice_bag'] = 1, ['bandage'] = 1}
            },
        },
        part = 'head' -- for ui
    },          
}
Paramedic Config
Config.Paramedic = {}

Config.Paramedic.SetAmbulanceFuel = function(vehicle) -- set the fuel level of ambulance spawned by script
    if vehicle and vehicle ~= 0 then
        SetVehicleFuelLevel(vehicle, 100.0)
    end
end

-- Beds for respawn by local paramedics, name must be the same as in Config.Paramedic.Paramedics
Config.Paramedic.Beds = {
    ['Pillbox'] = {
        {
            bedCoords = vector4(317.8121, -585.2734, 44.2040, 339.9709), -- coords of bed
            pedCoords = vector4(316.6967, -584.4418, 43.2840, 205.8660), -- coords of ped which will be spawned next to you for a while
        }
    }
}

Config.Paramedic.Paramedics = {
    ['Pillbox'] = { -- name of the hospital
        coords = vector3(306.8384, -594.5613, 43.2840), -- coords
        distance = 4,
        maxMedics = 2, -- if there is more than 2 medics online, paramedic will be disabled
        prices = {
            ['cash'] = 250,
            ['card'] = 250
        },
        ped = {
            coords = vector4(308.5830, -595.1374, 43.2840, 69.1035),
            model = 's_m_m_paramedic_01',
        },
    }
}

Config.Paramedic.OfflineMedic = {
    deathTimer = 300,
    useAdvanced = true, -- true = script will spawn ambulance with driver and take you to hospital, false = normal respawn in hospital
    removeItems = true, -- true = script will remove all items from player
    whitelistedItems = { -- this items will not be removed (set to false to remove all items)
        ['phone'] = true,
        ['simcard'] = true
    },
    driverModel = 's_m_m_paramedic_01',
    ambulanceModels = {
        ['boat'] = 'predator',
        ['heli'] = 'maverick', -- not available for now
        ['car'] = 'ambulance'
    },
    options = {
        ['Pillbox'] = {
            label = 'Pillbox',
            destinations = {
                ['car'] = vector3(340.2643, -556.1202, 28.7369),
                ['boat'] = vector3(340.2643, -556.1202, 28.7369),
                ['heli'] = vector3(352.3582, -588.5287, 74.1656) -- not available for now
            },
            spawnCoords = vector4(322.1627, -589.4645, 43.9903, 72.9153)
        }
    }
}
Spawner Config
Config.Spawner = {}

Config.Spawner.Spawners = {
    ['ambulance'] = {
        {
            coords = vector4(318.6362, -583.1759, 28.7968, 252.7409),
            spawnCoords = vector4(323.1411, -586.9318, 28.7968, 338.0609),
            ped = 's_m_y_airworker',
            vehicles = {
                ['ambulance'] = 'ambulance' -- model name from base game for photo
            }
        }
    }
}

Config.Spawner.AddKeys = function(plate, vehicle, model)
    TriggerServerEvent('p_carkeys:CreateKeys', plate)
end

Config.Spawner.RemoveKeys = function(plate, vehicle, model)
    TriggerServerEvent('p_carkeys:RemoveKeys', plate)
end
Stretchers Config
Config.Stretcher = {
    model = 'prop_ld_binbag_01',
    vehicleModels = {'ambulance'},
    amount = 1, -- amount of strechers per ambulance (set to false if you want infinity)
    animations = {
        holding = {
            dict = 'anim@heists@box_carry@',
            clip = 'idle',
            flag = 49
        },
        laying = { -- if player is not dead
            dict = 'anim@gangops@morgue@table@',
            clip = 'body_search',
            flag = 1
        }
    },
    offsets = {
        attach = vector3(-0.1681134, -1.0495786, -0.516176),
        rotation = vector3(12.740244, 4.5091583, -8.204815),
    },
    restrict = {
        ['takeStretcher'] = true, -- only allowed jobs can take stretcher model (not from vehicle)
        ['getPlayerOff'] = true, -- only allowed jobs can take dead player off stretcher
        ['putPlayerOn'] = true, -- only allowed jobs can put dead player on stretcher
    }
}
Wheelchairs Config
Config.Wheelchairs = {}

Config.Wheelchairs.Points = {
    ['Pillbox'] = {
        coords = vector4(349.4834, -587.6855, 28.7969, 249.8445),
        size = vec3(1.0, 1.0, 1.0),
        ped = 's_m_m_paramedic_01',
        jobs = {['ambulance'] = 0}
    }
}
PreviousSetup ServerNextClient Exports

Last updated 19 days ago

🚑
⚙️