# createFire (Client)

> Starts a fire at a point, on this client only. It burns for 5 seconds.

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

## Syntax

```lua
bool createFire(float x, y, z [, float size = 1.8])
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `x, y, z` | `float` | Where the fire starts. A `vec3` also works. |
| `size` | `float` | The size of the flames. *(default: `1.8`)* |

## Returns

`true` if the fire started, `false` if no free fire was left.

## Example

```lua
local pos = getElementPosition(localPlayer)
createFire(pos.x + 3, pos.y, pos.z, 2.5)
```

## See also

- [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.
- [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.
- [setElementOnFire (Client)](https://wiki.mymp.gg/en/setElementOnFire-client.md): Sets an element on fire or puts it out on this client.
