---
description: Do you need a playtime in the different script?
---

# Exports

* Here are the exports for our PlayTime system.
* Now you can easily get playtime in a different script.

{% hint style="warning" %}
These exports are server side
{% endhint %}

{% code title="server_example.lua" %}
```lua
RegisterCommand('test', function(source)
    local playtime = exports['SA-Playtime']:GetPlayTime(source)

    print(playtime)
end)

RegisterCommand('test2', function(source)
    local playtime = exports['SA-Playtime']:GetPlayTimeNumber(source)

    print(playtime)
end)
```
{% endcode %}

{% code title="console -> /test" %}
```
// [  script:SA-Playtime] 0 days, 0 hours, 45 minutes.
```
{% endcode %}

{% code title="console -> /test2" %}
```
// [  script:SA-Playtime] 45
```
{% endcode %}
