Randolio Development
  • 👤Welcome
  • 💰Paid Scripts
    • 🏥Medical
      • ❌DEPENDENCIES
      • ❗QBCore Installation
      • ❗QBOX Installation
      • ❗ESX Installation
      • 💻Event/Functions
      • 👨‍💻Exports
      • 🤓Configuration
    • 📱ATM Hacking
    • ⛅Weather Sync
    • 🏚️Stash Houses
    • 💄Female Bundles
      • 🤖Discord Bot
      • 💻Exports
      • ➕Items/Images
    • 🪄Witchcraft
    • 🔌Gun Plugs
    • 📹News Job
    • 🗒️Vehicle List
Powered by GitBook
On this page
  • Data
  • Server
  • Medical Bag
  • Perma System
  • EMS Actions
  1. Paid Scripts
  2. Medical

Configuration

The available configuration files are cl_open, sv_open, sv_config and shared.lua

Data

Adding a new hospital location (data/hospitals.lua)

pillbox = { -- Name must be unique.
    label = 'Pillbox', -- Used to display on manage checkins menu.
    blip = {coords = vec3(306.97, -595.81, 43.29), sprite = 61, color = 3},
    checkin = {
        vec3(308.46, -595.93, 43.29)
    },
    checkinPrice = 500, -- The cost to checkin at that specific location.
    minDoctors = 1, -- The amount of ems on duty that stops you from being able to use the checkin.
    beds = { -- All bed locations in the MLO. Make sure you -1.0 your z coordinate.
        { coords = vec4(353.1, -584.6, 43.11, 160.0)},
        { coords = vec4(356.79, -585.86, 43.11, 160.0)},
        { coords = vec4(354.12, -593.12, 43.1, 340.0)},
        { coords = vec4(350.79, -591.8, 43.1, 340.0)},
        { coords = vec4(346.99, -590.48, 43.1, 340.0)},
        { coords = vec4(360.32, -587.19, 43.02, 160.0)},
        { coords = vec4(349.82, -583.33, 43.02, 160.0)},
        { coords = vec4(326.98, -576.17, 43.02, 160.0)},
    },
    stash = { slots = 50, weight = 2000000, coords = vec3(310.58, -603.13, 43.29)}, -- Player owned stash
    duty = {
        vec3(304.6, -597.47, 43.29), -- QBCore Pillbox Duty
    },
    armory = {
        vec3(310.16, -599.97, 43.29), -- QBCore Pillbox armory.
    },
    restock = {
        vec3(310.68, -597.04, 43.07),
    },
},

Vehicles (data/vehicles.lua)

vehicles = { -- Higher ranks can see the vehicles from ranks below them so you don't need to input the same vehicle into each grade.
    [0] = { -- 0 is the job grade.
        ambulance = 'Ambulance', --@ spawncode | label
    },
    [1] = { },
    [2] = { },
    [3] = { },
    [4] = { }
},
heli = {
    [0] = { polmav = 'AIR-1', },
    [1] = { },
    [2] = { },
    [3] = { },
    [4] = { }
},
boat = {
    [0] = { dinghy = 'BOAT-1', },
    [1] = { },
    [2] = { },
    [3] = { },
    [4] = { }
},
VehicleMods = { -- Sets default cosmetics for job vehicles. Uses lib.lib.setVehicleProperties: https://github.com/overextended/ox_lib/blob/master/resource/vehicleProperties/client.lua#L288
    polmav = {
        extras = { ['1'] = false, ['2'] = true }, -- Examples
        modLivery = 1,
    },
    ambulance = {
        extras = {},
        modLivery = 1,
    }
},

Adding new garages (data/garages.lua)

{
    points = { -- Form a poly around the area. All z coords must match.
        vec3(301.53, -604.45, 43.3),
        vec3(293.45, -601.3, 43.3),
        vec3(290.03, -610.85, 43.3),
        vec3(297.6, -613.65, 43.3),
    },
    type = 'vehicle', -- type: 'vehicle' | 'heli' | 'boat'
    coords = vec4(295.36, -606.84, 43.33, 70.09), -- Vehicle spawn coords.
    label = 'Pillbox Garage',
    icon = 'fa-solid fa-car',
},
{
    points = { vec3(348.34, -579.06, 74.17), vec3(361.62, -583.76, 74.17), vec3(355.89, -598.63, 74.17), vec3(341.45, -593.08, 74.17), },
    type = 'heli',
    coords = vec4(351.76, -587.9, 74.17, 208.87),
    label = 'Pillbox Roof',
    icon = 'fa-solid fa-helicopter-symbol',
},

Server

Respawn Locations

If you're NOT respawning in beds (see Shared.lua -> RespawnIntoBed) it will find the closest hospital and place you at those coords defined below.

RespawnLocations = {
    vec3(299.63, -579.15, 43.26), -- Pillbox
    vec3(337.39, -1393.26, 32.51), -- Central Medical
    vec3(-245.25, 6328.88, 32.43), -- Paleto Medical
},

Armory Items

Managed server side and sent to the client. Add as many things as you want here.

ArmoryItems = {
    bandage = {price = 5},
    firstaid = {price = 0},
},

Healing Consumables

All heal items call the same event with their unique data defined in the table below. It handles emotes, props, health gain, bleed reduction and stress reduction. Setting min and max values to 0 will not make it gain/reduce anything. Pretty simple.

HealItems = {
    {
        item = 'bandage',
        bleed = {min = 3, max = 5},
        heal = {min = 10, max = 15},
        duration = 3000,
        dict = 'anim@amb@business@weed@weed_inspecting_high_dry@',
        clip = 'weed_inspecting_high_base_inspector',
        flag = 49,
        model = `prop_rolled_sock_02`,
        pos = vec3(0.1, 0, 0.05),
        rot = vec3(0, 0, 0),
        bone = 26610,
        stress = {min = 1, max = 2},
        disableActions = { move = false, car = false, mouse = false, combat = true, },
    },
    {
        item = 'firstaid',
        bleed = {min = 30, max = 50},
        heal = {min = 40, max = 70},
        duration = 8000,
        dict = 'missheistdockssetup1clipboard@idle_a',
        clip = 'idle_a',
        model = `prop_stat_pack_01`,
        pos = vec3(0, 0, 0),
        rot = vec3(0, 0, 0),
        bone = 60309,
        disableActions = { move = false, car = false, mouse = false, combat = true, },
    },
},

Medical Bag

This is your medical bag. You can define the item name for the bag and the default stock of items that goes into it. This persists whilst the server is online. On restart, it will reset to stock defaults. You will need to make restock locations at specific hospitals to restock your bag. See 'Adding a new hospital' at the top of this page.

MedBagItem = 'medicalbag',
MedBagItemDefaults = { -- Stock based system during server up time. Players will need to restock at restock location at specific hospitals.
    bandage = {amount = 50},
    firstaid = {amount = 10},
    weapon_flashlight = {amount = 1},
    radio = {amount = 1},
},

Perma System

If you do not wish to use the perma system, you can set EnablePermaSystem to false.

PermaWhitelistCids are the citizenid's of players that you allow to use the /perma id command.

EnablePermaSystem = true,
PermaWhitelistCids = { -- Whitelisted citizenids that are able to perform /perma id.
    ['RANDOLIO'] = true -- QBCore/QBX citizenids are like 'BHU87653' | ESX is like 'char1:c76434832453242jerdgfvfgve'
},
PermaCommand = 'perma',
PermaWaitDuration = 10000, -- 10 seconds and then the player will be deleted and bodybag gets deleted.

EMS Actions

By default it is binded to F6. This actions menu can be customized in cl_open.lua, following the format.

PreviousExportsNextATM Hacking

Last updated 6 months ago

💰
🏥
🤓