πŸ“™
Simonfas FiveM
  • ⚠️About Simonfas Fivem
    • πŸ›’Shop
    • πŸ”—Discord
  • πŸ“‘EXTRA
    • ❓Questions
    • 🌐Locales
      • πŸ‡ΊπŸ‡²OX LIB Locales
      • πŸ‡ΊπŸ‡ΈNormal Locales
  • Create A Server
    • Getting Started
      • Download Artifacts
      • Setup TxAdmin
  • πŸ–₯️SCRIPTS
    • 🚢Spawn NPC Copy
      • πŸ“½οΈRelease video
      • πŸ“½οΈOX LIB UPDATE
      • 🟒Green Screen
      • πŸ’ƒAnimation Presets
    • πŸšΆβ€β™€οΈSpawn NPC Copy Sample Version
    • 🏎️Drift Script
      • Notify
    • πŸ§₯Refreshskin
    • 🧰Mechanic
    • πŸ›—Elevator
      • Notify
    • πŸš“Job Garage
      • Notify
    • πŸ“±Stausi Tablet
  • πŸ—’οΈFivem Server Files Rework
    • πŸ‡©πŸ‡°[DK] Devo Network Rework
  • 🀩Coming soon
    • πŸ—ƒοΈEvidence
      • Local Databsase
    • πŸ”Restaurant Job
    • 🌳Lumberjack Job
Powered by GitBook
On this page
  1. SCRIPTS
  2. Elevator

Notify

Notify.lua to Elevator

PreviousElevatorNextJob Garage

Last updated 10 months ago

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
}
πŸ–₯️
πŸ›—
Questions