# getFiresInRange (Client)

> Lists the fires burning near a point. The distance is measured on the horizontal plane only.

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

## Syntax

```lua
table getFiresInRange(float x, y, z, float radius)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `x, y, z` | `float` | The centre of the search. A `vec3` also works. |
| `radius` | `float` | The search radius in metres, 0 or more. |

## Returns

A list of tables, one per fire, with `position` (where the fire is) and `size` (the strength of its flames).

## Example

```lua
local pos = getElementPosition(localPlayer)
local fires = getFiresInRange(pos.x, pos.y, pos.z, 30)
outputDebugString(#fires .. " fires nearby")
```

## 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.
- [extinguishFire (Client)](https://wiki.mymp.gg/en/extinguishFire.md): Puts out the fires within a radius of a point. Without arguments, it puts out every fire on this client.
