Setting up weapons

Setting up weapon is a crucial part of the configuration file. This allows you to define which weapons the script will work with and then subsequently use them when configuring fire types, to decide how different fires respond to them.

This can be found in the weapons = { section.

We'll use the weapons.water as an example of configuring a weapon type. This is the weapon that is usable by doing /hose if you are using our HoseLS resource.

You can easily add or remove weapons and modify them by following the guide below.

water = {
        model = `weapon_hose`, -- If you are using HoseLS, we do not recommend changing this
        name = "Hose",
},

Firstly, the name of the weapon must be defined, as seen here this is titled water, as this is what the Hose is used for.

The model is the model of the weapon, for HoseLS, our v2 includes an addon weapon with a model name of weapon_hose.

Important: All model names must be wrapped in the following symbol: ``. (This is different to '')

The name of the weapon is mainly used for logging purposes and enables you to know which weapon was used to extinguish a fire.

Last updated