Notify

Notify.lua to Job Garage

Check out Questions to see how to change the notify to your own system

notify.lua
-- When vehicle is deleted
function vehicledeleted()
    lib.notify({
        title = 'Vehicle Got Deleted',
        type = 'success'
    })
end

-- An error with the script -- Contact Simonfas
function vehicledeletedfailed()
    lib.notify({
        title = 'Failed To Delete Vehicle',
        type = 'error'
    })
end

-- If u dont are in a vehicle or contact simonfas
function novehicle()
    lib.notify({
        title = 'There is no vehicle here',
        type = 'error'
    })
end

-- If u dont have the right job or contact simonfas
function noaccess()
    lib.notify({
        title = 'You dont have the right job',
        type = 'error'
    })
end

-- Be sure to dont have 2 stations with the same ID or contact Simonfas
function invalidstationid()
    lib.notify({
        title = 'Invalid station ID',
        type = 'error'
    })
end

-- Vehicle fully upgraded
function vehiclefullyupgraded()
    lib.notify({
        title = 'Vehicle fully upgraded.',
        type = 'success'
    })
end

-- Livery applied
function liveryapplied(liveryName)
    lib.notify({
        title = 'Livery applied: ' .. liveryName,
        type = 'success'
    })
end

-- Tint applied
function tintapplied(tint)
    lib.notify({
        title = 'Window tint applied: ' .. tint,
        type = 'success'
    })
end

-- Do Not Edit --
return {
    vehicledeleted = vehicledeleted,
    vehicledeletedfailed = vehicledeletedfailed,
    novehicle = novehicle,
    noaccess = noaccess,
    vehiclefullyupgraded = vehiclefullyupgraded,
    liveryapplied = liveryapplied,
    tintapplied = tintapplied,
    invalidstationid = invalidstationid
}

Last updated