# isElementStreamedIn (Client)

> Tells whether an element is loaded into this client's world.

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

## Syntax

```lua
bool isElementStreamedIn(element element)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `element` | `element` | A player, ped, vehicle, object, effect or light. |

## Returns

`true` if the element is streamed in, `false` if not.

The local player is always streamed in.

## Example

```lua
for _, ped in ipairs(getElementsByType("ped")) do
    if isElementStreamedIn(ped) then
        outputDebugString("ped near: " .. tostring(ped))
    end
end
```

### Note

Any other element type raises an error.

## See also

- [isElementStreamable (Client)](https://wiki.mymp.gg/en/isElementStreamable.md): Tells whether an element streams in and out with distance.
- [setElementStreamable (Client)](https://wiki.mymp.gg/en/setElementStreamable.md): Chooses whether an element streams in and out with distance or always stays loaded.
- [onClientElementStreamIn (Client)](https://wiki.mymp.gg/en/onClientElementStreamIn.md): Fired when an element streams in on this client and comes into the game world.
- [isElementOnScreen (Client)](https://wiki.mymp.gg/en/isElementOnScreen.md): Tells whether an element shows on screen.
