inside-scripts
Store
  • INFORMATION
    • inside-scripts
  • PAID SCRIPTS
    • 🔑 Vehicle Keys
      • Functions
      • Config
    • 🚗 Garage
      • Functions
      • Script Functionality Overview
      • Config
    • 🥦 Weed Laboratory
      • Config
    • 💊 Sell Drugs
      • Script Functionality Overview
      • Config
    • 🗯️ Dialog V1
      • Functions
      • Config
    • 🗯️ Dialog V2
      • Functions
      • Config
    • 📰 Interaction
      • Functions
      • Config
    • 🪧Notifications and Progress
      • Functions
      • Config
    • 🪛 Lock Picking
      • Config
  • FREE SCRIPTS
    • 🖥️ Bridge & Library
      • Compatibility
      • Usage & Installation
      • Functions
        • Bridge
          • Framework
            • Client
            • Server
          • Inventory
            • Server
          • Fuel
            • Client
          • Keys
            • Client
            • Server
          • Notification
            • Client
            • Server
          • Progress Bar
            • Client
          • Target
            • Client
        • Library
          • Callback
            • Client
            • Server
          • Entity
            • Client
            • Server
          • Blip
            • Client
          • Identifier
            • Server
          • Timezone
            • Server
          • Webhook
            • Server
          • Utility
            • Shared
Powered by GitBook
On this page
  1. PAID SCRIPTS
  2. 🪧Notifications and Progress

Config

You can check out default config

cfg = {}

-- Icons List https://fontawesome.com/search?o=r&m=free

cfg.ProgressBar  = {
	default = {
		icon = "fa-solid fa-user",
		useWhileDead = false,
		canCancel = false,
		disable = {
			move = false,
			car = false,
			combat = false,
			mouse = false,
			sprint = false,
		}
	}
}

cfg.Notification = {
	default = {
		duration = 5000,
		style = "info"
	},
	Position = "left-center",
	-- left-top / left-center / left-down 
	-- top-left / top-center / top-right / 
	-- right-top / right-center / right-bottom 
	-- bottom-left / bottom-center / bottom-right
	Style = {
		["info"] = {
			icon = "fa-solid fa-lightbulb",
			primaryColor = "#0094E8",
			backgroundIcon = { from = "#0094E8", to = "#0D447B" },
			sound = { play = true, type = "notifySound6", volume = 5 }
		},
		["success"] = {
			icon = "fa-regular fa-thumbs-up",
			primaryColor = "#32DE84",
			backgroundIcon = { from = "#32DE84", to = "#19B463" },
			sound = { play = true, type = "notifySound6", volume = 5 }
		},
		["error"] = {
			icon = "fa-regular fa-thumbs-down",
			primaryColor = "#E62020",
			backgroundIcon = { from = "#E62020", to = "#940909" },
			sound = { play = true, type = "notifySound6", volume = 5 }
		},
		["money-income"] = {
			icon = "fa-solid fa-sack-dollar",
			primaryColor = "#3FD7AE",
			backgroundIcon = { from = "#3FD7AE", to = "#2B9679" },
			sound = { play = true, type = "notifySound6", volume = 5 }
		},
		["money-outcome"] = {
			icon = "fa-solid fa-sack-dollar",
			primaryColor = "#FF425D",
			backgroundIcon = { from = "#FC3955", to = "#861A20" },
			sound = { play = true, type = "notifySound6", volume = 5 }
		},
	}
}
cfg = {}

-- Icons List: https://fontawesome.com/search?o=r&m=free

cfg.Command = {
	name = "settings-ui",
}

cfg.ProgressBar = {
	title = "Example Title",
	duration = 5000,
	icon = "fa-solid fa-user",
	useWhileDead = false,
	canCancel = false,
	disable = {
		move = false,
		car = false,
		combat = false,
		mouse = false,
		sprint = false,
	},
	prop = {
		bone = 60309,
	}
}

cfg.Notification = {
	message = "Example Message",
	duration = 5000,
	style = "info",
	icon = "fa-solid fa-user",
	styles = {
		["info"] = {
			title = "Information",
			icon = "fa-solid fa-circle-info",
			color = "#007fff",
			sound = "audio/notifySound1.mp3",
		},
		["warning"] = {
			title = "Warning!",
			icon = "fa-solid fa-circle-exclamation",
			color = "#ffed4c",
			sound = "audio/notifySound1.mp3",
		},
		["success"] = {
			title = "Success",
			icon = "fa-solid fa-square-check",
			color = "#b2f22a",
			sound = "audio/notifySound1.mp3",
		},
		["error"] = {
			title = "Error",
			icon = "fa-solid fa-square-xmark",
			color = "#f84848",
			sound = "audio/notifySound1.mp3",
		},
	},
}

-- left-top / left-center / left-down 
-- top-left / top-center / top-right / 
-- right-top / right-center / right-bottom 
-- bottom-left / bottom-center / bottom-right

cfg.Settings = {
	color = "#b2f22a",
	progressBar = {
		showTime = true,
		position = "bottom-center",
		variation = 1,
	},
	notification = {
		sound = 20,
		position = "left-center",
		variation = 1,
	}
}

Last updated 8 months ago