Notify
Notify.lua to Elevator
Last updated
Notify.lua to Elevator
Last updated
Check out to see how to change the notify to your own system
-- When you get to a new floor
function newfloor(floor)
lib.notify({
title = 'Welcome to ' .. floor.name,
description = 'Welcome to the floor',
type = 'success'
})
end
-- If you write the code wrong
function codewrong()
lib.notify({
title = 'Wrong Code',
description = 'Wrong code, try again',
type = 'error'
})
end
-- If hacking is successful
function hackSuccess()
lib.notify({
title = 'Hacking Successful',
description = 'You have bypassed the security!',
type = 'success'
})
end
-- If hacking fails
function hackFail()
lib.notify({
title = 'Hacking Failed',
description = 'Hacking attempt failed. Try again.',
type = 'error'
})
end
function noHackingDevice()
lib.notify({
title = 'No Hacking Device',
description = 'You dont have the hacking device',
type = 'error'
})
end
function noKeycard()
lib.notify({
title = 'No Keycard',
description = 'U dont have the right keycard',
type = 'error'
})
end
function alreadyHere()
lib.notify({
title = 'You Are Here',
description = 'U cant use the elevator to the floor you are on.',
type = 'error'
})
end
-- Do Not Edit --
return {
newfloor = newfloor,
codewrong = codewrong,
hackSuccess = hackSuccess,
hackFail = hackFail,
noKeycard = noKeycard,
noHackingDevice = noHackingDevice,
alreadyHere = alreadyHere
}