# setLightFalloff (Client)

> Changes how a light fades toward the end of its range.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: Lights
- **URL**: https://wiki.mymp.gg/en/setLightFalloff

## Syntax

```lua
bool setLightFalloff(light light, float falloff)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `light` | `light` | The light. |
| `falloff` | `float` | Exponent of the fade toward the radius, from 0.1 to 32. Higher values keep the light strong closer to its edge. |

## Returns

`true` if it changed. With a wrong argument it logs a warning and returns `false`.

A new light starts at 4.

## Example

```lua
local light = createPointLight(2495.1, -1687.4, 14.5, 15)
setLightFalloff(light, 1)
```

## See also

- [getLightFalloff (Client)](https://wiki.mymp.gg/en/getLightFalloff.md): Reads a light's fade exponent.
- [setLightRadius (Client)](https://wiki.mymp.gg/en/setLightRadius.md): Changes a light's range.
- [setLightIntensity (Client)](https://wiki.mymp.gg/en/setLightIntensity.md): Changes a light's brightness.
