# isElementSyncer (Client)

> Tells whether this client syncs a ped or vehicle for the server.

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

## Syntax

```lua
bool isElementSyncer(element element)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `element` | `element` | The ped or vehicle. |

## Returns

`true` if this client is the one syncing the element, `false` if not.

## Example

```lua
for _, vehicle in ipairs(getElementsByType("vehicle", root, true)) do
    if isElementSyncer(vehicle) then
        setElementVelocity(vehicle, 0, 0, 0)
    end
end
```

## See also

- [setElementSyncer (Server)](https://wiki.mymp.gg/en/setElementSyncer.md): Chooses which player syncs a ped or vehicle.
- [getElementSyncer (Server)](https://wiki.mymp.gg/en/getElementSyncer.md): Tells which player syncs an element, that is, which client simulates it and sends its state to the server.
- [isElementLocal (Client)](https://wiki.mymp.gg/en/isElementLocal.md): Tells whether an element was created by this client rather than by the server.
