Giter Site home page Giter Site logo

mirrox1337 / qb-ambulancejob Goto Github PK

View Code? Open in Web Editor NEW

This project forked from qbcore-framework/qb-ambulancejob

0.0 0.0 0.0 157 KB

Ambulance Job, Hospital System & Death System For QB-Core :man_health_worker: :woman_health_worker:

Lua 100.00%

qb-ambulancejob's Introduction

qb-ambulancejob

EMS Job and Death/Wound Logic for QB-Core Framework ๐Ÿš‘

Dependencies

Screenshots

Check In Bed Healed Duty Toggle Radialmenu Elevator Armory Vehicles Heliopter

Features

  • Job actions menu (qb-radialmenu needed)
  • On Duty/Off Duty
  • Colleague blips on map
  • Elevator for hospital
  • Wounding & bleeding system with body parts (head, neck, rfinger etc.)
  • Painkillers & bandage
  • Armory for EMS
  • Vehicle & helicopter spawner
  • Check in & AI doctor system (usable when less than configured player doctor count)
  • Revive & heal & check nearby player
  • Last stand & dead system
  • Blood drop system

Commands

  • /status - Shows nearby players' status
  • /heal - Heals nearby plyer
  • /revivep - Revives nearby player
  • /revive [id] - Revive a player or yourself (superadmin only)
  • /setpain [id] - Sets the pain to a player or yourself (superadmin only)
  • /kill [id] - Kill a player or yourself (superadmin only)

Installation

Manual

  • Download the script and put it in the [qb] directory.
  • Add the following code to your server.cfg/resouces.cfg
ensure qb-core
ensure qb-ambulancejob
ensure qb-radialmenu
ensure qb-logs
ensure qb-hud
ensure qb-phone
ensure qb-policejob
ensure qb-inventory
ensure qb-vehiclekeys

Configuration

Config = {} -- Don't touch

Config.MinimalDoctors = 2 -- Minimum doctors needed for AI doctor functions to be disabled

Config.Locations = {
    ["checking"] = {x = 309.08, y = -592.91, z = 43.28, h = 0.0}, -- Check in marker
    ["duty"] = {
        [1] = {x = 304.27, y = -600.33, z = 43.28, h = 0.0}, -- On Duty/Off Duty marker
        [2] = {x = -254.88, y = 6324.5, z = 32.58, h = 0.0},
    },    
    ["vehicle"] = {
        [1] = {x = 294.578, y = -574.761, z = 43.179, h = 35.792}, -- Job vehicles marker
        [2] = {x = -234.28, y = 6329.16, z = 32.15, h = 222.5},
    },
    ["helicopter"] = {
        [1] = {x = 351.58, y = -587.45, z = 74.16, h = 160.5}, -- Helicopter spawner marker
        [2] = {x = -475.43, y = 5988.353, z = 31.716, h = 31.34},
    },    
    ["armory"] = {
        [1] = {x = 306.26, y = -601.7, z = 43.28, h = 90.654}, -- Armory location
        [2] = {x = -245.13, y = 6315.71, z = 32.82, h = 90.654},
    },
    ["roof"] = {
        [1] = {x = 338.5, y = -583.85, z = 74.16, h = 245.5}, -- Roof coordinates
    },
    ["main"] = {
        [1] = {x = 332.51, y = -595.74, z = 43.28, h = 76.0}, -- Elevator coordinates
    },        
    ["beds"] = { -- Beds for wounded players
        [1] = {x = 311.13, y = -582.89, z = 43.53, h = 335.65, taken = false, model = 1631638868},
        [2] = {x = 313.96, y = -579.05, z = 43.53, h = 164.5, taken = false, model = 1631638868},
        [3] = {x = 314.58, y = -584.09, z = 43.53, h = 335.65, taken = false, model = 1631638868},
        [4] = {x = 317.74, y = -585.29, z = 43.53, h = 335.65, taken = false, model = 1631638868},
        [5] = {x = 319.47, y = -581.04, z = 43.53, h = 164.5, taken = false, model = 1631638868}, 
        [6] = {x = 366.43, y = -581.54, z = 43.28, h = 66.5, taken = false, model = 1631638868}, 
        [7] = {x = 364.93, y = -585.86, z = 43.28, h = 67.5, taken = false, model = 1631638868}, 
        [8] = {x = 363.82, y = -589.09, z = 43.28, h = 68.5, taken = false, model = 1631638868},
    }
}

Config.Vehicles = { -- Allowed vehicles for EMS
    ["asprinter"] = "Mercedes-Benz Sprinter",
    ["aeklasse"] = "Mercedes-Benz E-Klasse",
}

Config.Whitelist = { -- Armory whitelist
    "GAA35566",
}

Config.Helicopter = "alifeliner" -- Allowed helicopters

Config.Items = { -- Armory items
    label = "Hospital safe", -- Armory label
    slots = 30, 
    items = {
        [1] = {
            name = "radio", -- Item name
            price = 0, -- Item price
            amount = 50, -- Item stock (resets on server restart)
            info = {}, -- Don't touch
            type = "item", -- Don't touch
            slot = 1, -- Item's position on the armory
        },
        [2] = {
            name = "bandage",
            price = 0,
            amount = 50,
            info = {},
            type = "item",
            slot = 2,
        },
        [3] = {
            name = "painkillers",
            price = 0,
            amount = 50,
            info = {},
            type = "item",
            slot = 3,
        },
        [4] = {
            name = "weapon_flashlight",
            price = 0,
            amount = 50,
            info = {},
            type = "item",
            slot = 4,
        },
        [5] = {
            name = "weapon_fireextinguisher",
            price = 0,
            amount = 50,
            info = {},
            type = "item",
            slot = 5,
        },
    }
}

Config.BillCost = 2000 -- Treatment cost
Config.DeathTime = 300 -- Needed time to be dead after last stand (seconds)
Config.CheckTime = 10 -- Check In time (seconds)

Config.PainkillerInterval = 60 -- (seconds)

------------------ CONFIG SETTINGS BELOW THIS ARE EXPLAINED IN THE CONFIG.LUA ------------------

qb-ambulancejob's People

Contributors

ghzgarage avatar ghostfacerp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.