Jobs

data/jobs.lua

Define jobs and their duties within this resource file.

You can set both global permissions across the entire job, and overwrite individual rank permissions as shown in the example below.

NOTE: These must be pre-existing jobs, as ti_ems handles none of the employment management code itself.

local jobs = {}

jobs.ambulance = {
    hospital_items = true,      -- can this job access EMS items from hospital?
    vehicle_items = true,       -- can this job access EMS items from vehicle?
    field_medic = true,         -- can this job perform field medic duties?
    hospital_staff = false,     -- can this job perform hospital duties?
    pings = true,               -- should this job receive notifications when a player is requesting assistance?
    ranks = {
        [1] = {
            hospital_items = true,
            vehicle_items = true,
            field_medic = true,
            hospital_staff = true,
            surgeon = false,
            pings = true,
        },
        [4] = {
            hospital_items = true,
            vehicle_items = true,
            field_medic = true,
            hospital_staff = true,
            surgeon = true,
            pings = true,
        }
    }
}

Last updated