# print (Shared)

> Writes the values given to the script log as a message, separated by tabs.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Shared
- **Category**: Output and debugging
- **URL**: https://wiki.mymp.gg/en/print

## Syntax

```lua
nil print(any ...)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `...` | `any` | The values. Each becomes text the way `tostring` would make it. |

## Returns

Nothing.

## Example

```lua
print("players online:", #getElementsByType("player"))
```

## See also

- [outputDebugString (Shared)](https://wiki.mymp.gg/en/outputDebugString.md): Writes a line to this side's script log, as an error, a warning or a message.
- [outputServerLog (Shared)](https://wiki.mymp.gg/en/outputServerLog.md): Writes a message to this side's log, with the resource's name in front.
