ClockItems

Item Handling (On Duty / Off Duty) - You can configure the script to automatically give or remove items when a player clocks in or out based on their job role.

  • Add: Items the player will receive when clocking in.

  • Remove: Items the player will lose when clocking out.

  • If count = 0 in Remove, all of that item will be removed.

  • This configuration is job-specific (based on job name).

  • You can define this for as many jobs as needed.

SV_CONFIG.Items = {
    ["police"] = {
        -- Job name
        Add = {
            {item = "bandage", count = 1},
            {item = "radio", count = 1}
        },
        Remove = {
            {item = "radio", count = 0} -- Removes all radios
        }
    },
    ["ambulance"] = {
        Add = {
            {item = "bandage", count = 2},
            {item = "radio", count = 1}
        },
        Remove = {
            {item = "radio", count = 1},
            {item = "bandage", count = 2}
        }
    }
    -- more
}

Last updated