🎫zsLib

This is the script you get when you buy one of our scripts like Garden Cleaner Job or Garbage Job for free.

Progress Bar

exports["zsLib"]:ProgressBar({
       name = "Progress1",
       duration = 5000, -- in MS 
       label = "Label", -- Some Text
       useWhileDead = false,
       canCancel = false,
       disarm = true,
       controlDisables = {
              disableMovement = false,
              disableCarMovement = false,
              disableMouse = false,
              disableCombat = false,
       },
       animation = {
              animDict = "amb@prop_human_bum_bin@idle_a",
              anim = "idle_a",
              flags = 0,
              task = nil,
       },    
})

Notify

--SERVER:

TriggerClientEvent('zsLib:notify', source, {
    sound = 'not1',
    icon = 'fas fa-exclamation-circle text-danger',
    title = 'Nastala chyba',
    message = 'hi world',
    time = 7000,
    appname = 'Server'
})

CLIENT:

exports['zsLib']:Notify({
    sound = 'not1',
    icon = 'fas fa-exclamation-circle text-danger',
    title = 'Nastala chyba',
    message = 'hi world',
    time = 7000,
    appname = 'Server'
})

CreateMenu

exports["zsLib"]:CreateMenu({
       {
         header = "Header", -- Some Header
         icon = "fas fa-car", -- Some Icon
         txt = "Txt", -- Some Text
       },
       {
         header = "Header", -- Some Header
         icon = "fas fa-car", -- Some Icon
         txt = "Txt", -- Some Text
         params = {event = "zsLib:someevent"}
       },  
       {
         header = "Header", -- Some Header
         icon = "fas fa-car", -- Some Icon
         txt = "Txt", -- Some Text
         params = {
             event = "zsLib:someevent",
             args = { Args1 = Args1,} 
         } 
       }        
         
                      
})

ShowTextUI / HideTextUI

exports["zsLib"]:ShowTextUI("Some Text", "E", "fas fa-car") -- Show

exports["zsLib"]:HideTextUI() -- Hide

InputDialog

exports['zsLib']:InputDialog({
    header = 'Header', -- Some Header
    submitText = 'Send', -- Some Text on send
    inputs = {
        {
            text = 'Text', -- Some Text 
            name = '/',
            type = 'text',
            isRequired = true
        },
        {
            text = 'Text', -- Some Text
            name = '/',
            type = 'select',
            options = options,
        }
    }
-- Type: text, select,...    

Last updated