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
  • XP Calculation Function
  • Economy Configuration
  • Job Requirement Configuration
  • Skill Tree Integration
  • Quest Configuration
  • Language Configuration
  • Sound Volume
  • Debug
  1. Pool Cleaner Job
  2. Configuration

shared.lua

Documentation for shared.lua Configuration

XP Calculation Function

Shared.CalculateNeedXP = function(level)
    return math.floor(100 * (level ^ 1.5))
end
  • Description: Determines the XP required for a given level.

  • Formula: 100 * (level ^ 1.5), rounded down.


Economy Configuration

Shared.Economy = {
    xp = 100,
    money = 250,
    mulitplerPerLevel = 0.01,
}
  • xp: XP earned per finished job.

  • money: Money earned per finished job.

  • mulitplerPerLevel: Additional reward percentage per player level.


Job Requirement Configuration

Shared.JobRequired = false

Description: Specifies if a specific job is required to perform mining tasks. Values: Set to the job name (e.g., "poolCleaner") to require it, or false to allow all players.


Skill Tree Integration

Shared.SkillTreeEnabled = false
  • Description: Enables or disables the skill tree feature.

  • Note: Must ensure the script is loaded after dh_skillTree.


Quest Configuration

Shared.QuestsEnabled = true
Shared.Quests = {
   {
        uid = "pick_up_trash",
        description = "Pick up trash",
        value = 15,
        reward = {
            xp = 1000,
            money = 1000,
        },
        icon = "",
        rewardMultiplerPerLevel = 0.1,
        questMultiplerPerLevel = 0.8,
    },
    -- Additional quests...
}
  • uid: Unique identifier for the quest.

  • description: Describes the quest objective.

  • value: Number of items or actions required to complete the quest.

  • reward: XP and money granted upon completion.

  • rewardMultiplerPerLevel: Multiplier applied to rewards based on player level.

  • questMultiplerPerLevel: Adjusts the difficulty based on player level.


Language Configuration

Shared.Lang = {
    ['Your'] = "Your",
    ['Mission'] = "Mission",
    ['Minigame'] = "Minigame",
    ['Time'] = "Time",
    -- Additional language entries...
}
  • Description: Customizes text used throughout the script's UI.

  • Usage: Adjust the right-side values to localize or customize messages.

  • Note: Keep ${value} format unchanged to ensure dynamic values work correctly.


Sound Volume

Adjust in game sound

Shared.SoundVolume = 0.25

Debug

If you want to see debug messages in the console, set it to true

Shared.Debug = false
Previousclient.luaNextserver.lua

Last updated 1 month ago

YOU NEED SKILL TREE SCRIPT, OR

🌊
đŸ› ī¸
NORMAL
EXCLUSIVE