DEVHUB DOCUMENTATION
Tebex StoreDevhub LIbDiscord Support
  • 🏠Home page
  • 🐌Download purchased assets
  • â‰ī¸Error: "You lack the required entitlement to use"
  • â‰ī¸Error: syntax error near '<\1>'
  • 💾Partnered FiveM Hosting
  • 💾SCRIPTS
    • 📗devhub_lib (NEEDED FOR EACH SCRIPT!)
      • đŸ’ģInstallation
      • 2ī¸âƒŖMigration from v1 to v2
      • âš™ī¸Framework
      • đŸ–ī¸Target
      • 🧭Ui
      • 🔑Vehicle Keys
      • â›ŊVehicle fuel
      • 🔊Sound System
      • 👕Clothing
      • â„šī¸Logs
      • 📡SQL
      • 🎨UI Color Customization
      • 🆘Compatibility test
  • 🔧Car Tune
    • đŸ’ģInstallation
    • đŸ› ī¸Configuration
    • 💾Saving Cartune Settings
  • 🚙Car Dancing
    • đŸ’ģInstallation
    • đŸ› ī¸Configuration
      • Beat generating
  • đŸ’ĒSkill Tree
    • đŸ’ģInstallation
    • đŸ› ī¸Configuration
    • đŸŽĢDevelopment
      • Listeners
      • Exports
      • Example skill
      • Pre-made skills
    • âš™ī¸Skill Generator
    • 🎨UI Color Customization
    • ❔FAQ
  • â›ī¸Miner Job
    • đŸ’ģInstallation
    • đŸ› ī¸Configuration
      • client.lua
      • shared.lua
      • server.lua
      • skillTree.lua
      • config.js
    • 🎨UI Color Customization
  • đŸĒĩDrywood Cutter Job
    • đŸ’ģInstallation
    • đŸ› ī¸Configuration
      • client.lua
      • shared.lua
      • server.lua
      • skillTree.lua
      • config.js
      • zones.lua
    • 🎨UI Color Customization
  • 🌊Pool Cleaner Job
    • đŸ’ģInstallation
    • đŸ› ī¸Configuration
      • client.lua
      • shared.lua
      • server.lua
      • skillTree.lua
      • config.js
      • zones.lua
    • 🎨UI Color Customization
  • đŸŒŋ[FREE] Herbal Alchemist Job
    • đŸ’ģInstallation
    • đŸ› ī¸Configuration
      • client.lua
      • shared.lua
      • server.lua
      • skillTree.lua
      • config.js
    • 🎨UI Color Customization
  • 📱Who Am I?
    • đŸ’ģInstallation
    • đŸ› ī¸Configuration
      • shared.lua
      • server.lua
    • 🎨UI Color Customization
  • 🎆Skill Selection
    • đŸ’ģInstallation
    • đŸ› ī¸Configuration
    • đŸ’ĒSkill Tree connection
    • 🎨UI Color Customization
  • 🍲3D CRAFTING TABLE
    • đŸ’ģInstallation
    • đŸ› ī¸Configuration
    • ❓How to create table
    • 🌹Custom props
  • đŸ‹ī¸Gym
    • đŸ’ģInstallation
    • đŸ› ī¸Configuration
  • â™Ÿī¸Props
    • đŸ–ŧī¸Paintings Pack
    • đŸ”ĒKitchen Furniture Pack
Powered by GitBook
On this page
  • Notification
  • Ui Position
  • Notification Types
  • Custom Notification
  • Static Message
  • Ui Position
  • Custom Static Message
  • Control Buttons
  • Ui Position
  • Custom Control Buttons
  • Progressbar
  • Ui Position
  • Custom Progressbar
  • Close Progressbar
  1. SCRIPTS
  2. devhub_lib (NEEDED FOR EACH SCRIPT!)

Ui

File Path: modules/systems/c.ui.lua

Ensure that if custom functionality is utilized, it returns true.

Some script may override this position, in that case, you will have a config in a script which will override this value


Notification

Ui Position

top-left top-right bottom-left bottom-right top-center bottom-center

CustomUi.NotifyPosition = "top-right"

Notification Types

CustomUi.NotifyTypes = {
    ['info'] = "info",
    ['error'] = "error",
    ['success'] = "success",
    ['warning'] = "warning"
}

Custom Notification

text The text of the notification. duration The duration for which the notification should be displayed. In milliseconds. notificationType The type of the notification. 'info' 'error' 'success' 'warning'

CustomUi.Notify = function(text, duration, notificationType)
    return false -- if you are using a custom notification, return true
end

Static Message

Ui Position

top-left top-right bottom-left bottom-right {right = 0, top = 0}

CustomUi.StaticMessagePosition = "top-left"

Custom Static Message

text The text of the static message, if false ui is hidden.

CustomUi.ShowStaticMessage = function(text)
    return false -- if you are using a custom static message, return true
end

Control Buttons

Ui Position

top-left top-right bottom-left bottom-right {right = 0, top = 0}

CustomUi.ControlButtonsPosition= "bottom-right"

Custom Control Buttons

Displays control buttons to the user.

text The text associated with the control buttons, if false ui is hidden.

CustomUi.ShowControlButtons = function(text)
    return false -- if you are using a custom control buttons system, return true
end

Progressbar

Ui Position

low medium high

CustomUi.ProgressbarPlacement = "low"

Custom Progressbar

data The data for the progress bar.

data.duration The duration for which the progress bar should be displayed. In milliseconds.

data.text The text associated with the progress bar.

data.canStop A boolean indicating whether the progress bar can be stopped by the user.

data.placement The placement of the progress bar. Default low. [low, medium, high]

cb The callback function to be executed when the progress bar completes.

CustomUi.ShowProgressbar = function(data, cb)
    return false -- if you are using a custom progress bar, return true
end

Close Progressbar

Closes the progress bar

CustomUi.CloseProgressbar = function()
    return false -- if you are using a custom progress bar, return true
end
PreviousTargetNextVehicle Keys

Last updated 3 months ago

💾
📗
🧭