πŸ€“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)

Adding new garages (data/garages.lua)

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.

Armory Items

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

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.

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.

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.

EMS Actions

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

Last updated