Pressure settings

The pressure of foam/water has various settings that are easily configured. To begin, navigate to the main = { section of the config.lua file and then to the pressure = { section.

pressure = {
        enabled = true, -- This enables or disables the live pressure settings on the hose
        -- For a list of controls, see here: https://docs.fivem.net/docs/game-references/controls/

Setting enabled to false will disable pressure adjustments for the hose or foam and they will be permanently on the default setting which you can set below. By default, pressure mode is enabled as this is a key element of Smart Hose.

 increaseKey = {0, 172}, -- This is the key to increase the pressure
 decreaseKey = {0, 173}, -- This is the key to decrease the pressure

These settings allow you to adjust the keys that are pressed for increasing and decreasing the pressure. A full list of controls can be found here. The first number is the control type which can be seen on the linked guide and the second number is the control number. We recommend using CTRL+F to search for your desired control on the list. By default, increasing pressure is set to arrow up and decreasing pressure is set to arrow down.

changeBy = 0.01, -- This is the amount that pressure will change by when increasing or decreasing

The changeBy setting determines the amount that the pressure will change when the increase or decrease key is pressed. This setting allows you to make the pressure easily changed quickly by increasing the number, or you could make it a more slower process by decreasing the number. By default, we've set this at 0.01 and after testing the resource, we believe this to be good for most communities.

defaultHosePressure = 0.7, -- This is the default pressure for the hose
defaultFoamPressure = 0.6, -- This is the default pressure for the hose when spraying foam

These settings allow you to adjust the default hose and foam pressures. We've set these at 0.7 and 0.6 by default, a reasonable sized particle.

maxHosePressureSize = 7.0, -- This is the maximum pressure for the hose
maxFoamPressureSize = 7.0, -- This is the maximum pressure for the hose when spraying foam
minHosePressureSize = 0.05, -- This is the minimum pressure for the hose
minFoamPressureSize = 0.05, -- This is the minimum pressure for the hose when spraying foam

These settings allow you to adjust the maximum and minimum pressures for both the hose and foam modes. This is to prevent an unrealistically sized pressure which leads to an unrealistic particle, affecting roleplay on the scene. Alternatively, a pressure that is too small just wouldn't be possible and would essentially mean the hose is turned off, which is why we've set the minimum value at 0.05 by default.

Last updated