This page provides comprehensive information about our configuration files, assisting in the setup of the resource.
cfg.z_interactions
This boolean value allows you to disable the default built-in interaction system for the script, enabling you to implement your own system.
---@field z_interactions boolean
---@description: Set as false if you do not want to use the interaction system build into z_hose
cfg.z_interactions = true
cfg.vehicles
This table contains the string values of the vehicle spawn codes you wish to configure with the resource. Once you have entered the string into this table, you will be able to create a new configuration module for the vehicle. This process is explained here.
Your configured vehicle requires a configuration module to function.
cfg.hoses
This table enables the configuration of hose weapons and associated objects. The hose weapons refer to the weapon hash used for spawning, while the objects correspond to the prop names of the weapons when the hose is positioned on the ground. You have the ability to edit both water and foam hoses.
Please ensure that the object name you enter is surrounded by backticks rather than regular quotation marks.
cfg.supplyMethods
This table facilitates the configuration of water supply methods. It contains numerous subtables, with the names of these tables indicating the objects to which the hose can be attached. Within each subtable, you will find editable values that allow you to customize the supply method accordingly.
Type
This string value enables the selection of the supply method type. You can choose between Hydrant and Suction; please note that the Suction option will necessitate the prop being placed within water.
Offset
This table value specifies the object offset to which the rope should be attached.
Flow Rate
This table allows for the editing of the flow rate of water to the vehicle, It allows for the decrease or increase of the amount of water that flows to the vehicle every tick, Each tick can be edited by editing the milliseconds value
---@field supplyMethods table
cfg.supplyMethods = {
[`prop_fire_hydrant_1`] = {
type = 'hydrant', -- | 'Hydrant' | 'Suction' |
offset = vector3(0.3, 0.0, 0.6),
flowRate = {
increment = 5.0, ---| amount incremented per tick
miliseconds = 100 ---| time in milliseconds for each tick
}
},
[`prop_fire_hydrant_2`] = {
type = 'Hydrant', -- | 'Hydrant' | 'Suction' |
offset = vector3(0.2, 0.0, 0.7),
flowRate = {
increment = 5.0, ---| amount incremented per tick
miliseconds = 100 ---| time in milliseconds for each tick
}
},
[`prop_fire_hydrant_4`] = {
type = 'Hydrant', -- | 'Hydrant' | 'Suction' |
offset = vector3(0.15, 0.0, 0.62),
flowRate = {
increment = 5.0, ---| amount incremented per tick
miliseconds = 100, ---| time in milliseconds for each tick
}
},
[cfg.objects['light_portable_pump']] = {
type = 'Suction', -- | 'Hydrant' | 'Suction' |
offset = vector3(0.0, 0.0, 0.4),
flowRate = {
increment = 5.0, ---| amount incremented per tick
miliseconds = 100, ---| time in milliseconds for each tick
}
},
}
cfg.decals
This table enables the customization of both water and foam world decals, which are generated during the application of water or foam.
Decal Type
This is the type of decal that has been created. You can find all the available decals here.
Decal Colour
This is the color of the decal represented in RGBA format, where A indicates the opacity of the decal.
Can Cover Entities
This boolean value enables the selection of whether this type of decal can cover objects, vehicles, and other entities.
---@field decals table
cfg.decals = {
['water'] = {
decalType = 9010,
decalColour = {R = 45, G = 45, B = 45, A = 0.5},
canCoverEntities = false
},
['foam'] = {
decalType = 1050,
decalColour = {R = 255, G = 255, B = 255, A = 0.7},
canCoverEntities = true
}
}
cfg.keybinds
This table facilitates the editing of the keybinds utilized by the resource. These keybinds are represented in string format and can be found in the following location: core > client > classes > keybinds.lua.
This table allows for the customization of both the language used by the resource and the associated strings. You can configure your preferred language within the fxmanifest.lua file.