Documentation

Config

functions.lua

functions.lua
return {
    isSeatbeltOn = function(ped, currentVehicle) -- Repalce this with your own seatbelt logic if your not using the built in seatbelt logic.
        return false
    end,
    getVehicleFuel = function(currentVehicle) -- Replace this with your own logic to grab the fuel level of the vehicle.
        return 75 -- For ox_fuel Entity(currentVehicle).state.fuel
    end,
}

shared.lua

shared.lua
return {
    debug = false,
    useBuiltInSeatbeltLogic = true, -- Cannot be used with useBuiltInFrameworkSeatbeltLogic, Whether to enable the custom seatbelt logic in this script, or use your own one, keep in mind that if you decide to use your own seatbelt logic, you will need to edit the source code to tailor your needs.
    useBuiltInFrameworkSeatbeltLogic = false, -- Currently only supports ESX, QB, Qbox, please disable the useBuiltInSeatbeltLogic if you wanna use this, as it supports your current framework seatbelt logic, or you can just use a completely custom one by disabling both seatbelt related bools and modifying your shared/functions.lua
    framework = "none", -- none, esx, qb, qbox,  ox, custom. If you wanna enable the hunger/thirst/stress stats you need to use a framework, or you can edit the source code to tailor your  own custom framework
    speedometer_unit = "mph", -- MPH or KMH
    defaultSettings = {
        colors = {
            heart = "#b22530",
            shield = "#004ADE",
            apple = "#E68800",
            water = "#00D0D0",
            brain = "#792AEC",
        },
    },
}

On this page