# getLightSourceRadius (Client)

> Reads the size of a spot light's bulb.

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

## Syntax

```lua
float|false getLightSourceRadius(light light)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `light` | `light` | The light. |

## Returns

The bulb's radius in metres, or `false` with a wrong argument.

## Example

```lua
local light = createSpotLight(0, 0, 10, 0, 0, -1)
outputDebugString(getLightSourceRadius(light)) -- 0.1
```

### Note

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

## See also

- [setLightSourceRadius (Client)](https://wiki.mymp.gg/en/setLightSourceRadius.md): Changes the size of a spot light's bulb. A larger bulb makes highlights and shadows softer.
- [getLightCone (Client)](https://wiki.mymp.gg/en/getLightCone.md): Reads the opening and the edge hardness of a spot light's cone.
