# setLightSourceRadius (Client)

> Changes the size of a spot light's bulb. A larger bulb makes highlights and shadows softer.

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

## Syntax

```lua
bool setLightSourceRadius(light light, float sourceRadius)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `light` | `light` | The light. |
| `sourceRadius` | `float` | Radius of the bulb in metres, from 0 to the light's range. |

## Returns

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

## Example

```lua
local light = createSpotLight(2495.1, -1687.4, 20, 0, 0, -1, 25)
setLightSourceRadius(light, 0.5)
```

### Note

Spot lights only. On a point or rect light it logs a warning naming its type and returns `false`.

## See also

- [getLightSourceRadius (Client)](https://wiki.mymp.gg/en/getLightSourceRadius.md): Reads the size of a spot light's bulb.
- [setLightCone (Client)](https://wiki.mymp.gg/en/setLightCone.md): Changes the opening and the edge hardness of a spot light's cone.
- [setLightRadius (Client)](https://wiki.mymp.gg/en/setLightRadius.md): Changes a light's range.
