🏎️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'
}

Last updated