# extinguishFire (Client)

> Puts out the fires within a radius of a point. Without arguments, it puts out every fire on this client.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: World and weather
- **URL**: https://wiki.mymp.gg/en/extinguishFire

## Syntax

```lua
bool extinguishFire([float x, y, z = nil, float radius = 1])
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `x, y, z` | `float` | The centre of the area to put out. A `vec3` also works. *(default: `nil`)* |
| `radius` | `float` | The area's radius, in metres. *(default: `1`)* |

## Returns

`true`.

## Example

```lua
local pos = getElementPosition(localPlayer)
extinguishFire(pos.x, pos.y, pos.z, 10)
```

## See also

- [createFire (Client)](https://wiki.mymp.gg/en/createFire.md): Starts a fire at a point, on this client only. It burns for 5 seconds.
- [getFiresInRange (Client)](https://wiki.mymp.gg/en/getFiresInRange.md): Lists the fires burning near a point. The distance is measured on the horizontal plane only.
