🤠
KOJA DOCS
  • Home
  • Store
  • Discord
  • lib
    • Client
  • NEW
    • 🚗Cardealer
      • Installation
      • Configuration
        • Creating a Cardealer
        • Changing Language
        • Creating a webhook for logging
    • 🎁Daily Rewards
      • Installation
      • Configuration
        • 🇵🇱Changing Language
        • 🛡️Debug Prints
        • 🚪Open Commands
        • 🛒Shop Link
        • ✏️Theme
        • 🖥️Auto Table
        • 🎁Rewards
        • 🎟️Missions
        • 📔Promocodes
      • Guides
        • ✈️Creating/Editing Locales
        • 🔫Managing Missions
        • 💎Setting Premium Status
    • 📊Hud
      • Installation
      • Configuration
        • 🇵🇱Changing Language
        • 🛡️Debug Prints
        • 🚪Settings Command
        • 🗺️Hide Minimap
        • 🗒️Notifications
        • 🏎️Nitro
        • ⚙️Engine
        • 💺Seatbelt
        • 🤖Cruisemode
      • Guides
        • ✈️Creating/Editing Locales
        • 🔗Progressbar
        • ℹ️TextUI
    • 🔫Shop Heist
      • Installation
      • Configuration
        • 🇵🇱Changing Language
        • 👮Required Police To Start Heist
  • 🛒Shops
    • Installation
    • Configuration
      • 🇵🇱Changing Language
      • 🎯Target
      • 🛍️Adding new shop
      • 🚗Server side exports
      • 📃SQL
    • Guides
      • ✈️Creating/Editing Locales
  • 📜Dialogs
    • Installation
    • Configuration
      • 🇵🇱Changing Language
      • 🎯Target
      • 📃Create Dialog
      • 🎹Available Keys
      • 🌀Default Images
  • OLD
    • 🎓Jobselector [FREE]
      • 📕Step By Step Guide
      • ⚙️Server
    • 🛠️Crafting [FREE]
      • 📕Step By Step Guide
      • 👇Client
      • 👆Server
Powered by GitBook
On this page
  • Database Table Settings
  • Nitro Force
  • Nitro Duration
  • Nitro Item
  1. NEW
  2. Hud
  3. Configuration

Nitro

Explanation of the nitro configuration in the script

Desc:

  • Value: 'Toggle nitro'

  • Explanation: This string serves as a short description or label for the nitro feature. It informs users that this setting toggles the nitro functionality on or off.


Database Table Settings

Tables:

  • GaragesTable: 'owned_vehicles'

    • Explanation: This is the name of the database table that stores information about owned vehicles.

  • OwnerColumn: 'owner'

    • Explanation: This column in the owned_vehicles table indicates the owner of each vehicle.

The script will automatically add a nitro INT(11) column to this table if it doesn't exist.

Nitro Force

NitroForce:

  • Value: 1.5

  • Explanation: This parameter sets the multiplier for the nitro boost. A value of 1.5 means that when nitro is activated, the vehicle’s acceleration or force is increased by 1.5 times.


Nitro Duration

RemoveNitroOnMilliseconds:

  • Value: 2

  • Explanation: This setting determines the duration (in milliseconds) after which the nitro effect is removed or deactivated. In this case, the effect is set to be very brief (2 ms), which might be used as an internal parameter to control the nitro decay rate.


Nitro Item

Item:

  • Value: 'nitro'

  • Explanation: This specifies the name of the item used to trigger or represent the nitro boost. It is likely used to verify whether the vehicle has nitro available (e.g., via inventory checking or command execution).

shared/config.lua
KOJA.Nitro = {
    Enabled = true,
    Key = 'N', 
    Desc = 'Toggle nitro', 
    Tables = {
        GaragesTable = 'owned_vehicles',
        OwnerColumn = 'owner'
    },
    NitroForce = 1.5,
    RemoveNitroOnMilliseconds = 2,
    Item = 'nitro'
}
PreviousNotificationsNextEngine

Last updated 3 months ago

📊
🏎️