> For the complete documentation index, see [llms.txt](https://stg-store.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://stg-store.gitbook.io/documentation/scripts/vanaheim-fuel/exports.md).

# Exports

#### Client Exports

***

<details>

<summary><code>Notify</code></summary>

{% code overflow="wrap" %}

```lua
exports['stg-vanaheimfuel']:Notify()
```

{% endcode %}

Shows a notification using the resource's configured notify system.

</details>

<details>

<summary><code>GetFuel</code></summary>

{% code overflow="wrap" %}

```lua
exports['stg-vanaheimfuel']:GetFuel()
```

{% endcode %}

Returns the current fuel level (0-100) of a vehicle. Defaults to the player's current vehicle.

</details>

<details>

<summary><code>SetFuel</code></summary>

{% code overflow="wrap" %}

```lua
exports['stg-vanaheimfuel']:SetFuel()
```

{% endcode %}

Sets the fuel level (0-100) of a vehicle. Defaults to the player's current vehicle.

</details>

<details>

<summary><code>GetVehicleFuelType</code></summary>

{% code overflow="wrap" %}

```lua
exports['stg-vanaheimfuel']:GetVehicleFuelType()
```

{% endcode %}

Returns the fuel category of a vehicle: 'diesel', 'gasoline', 'premium', or 'electric'.

</details>

<details>

<summary><code>IsRefueling</code></summary>

{% code overflow="wrap" %}

```lua
exports['stg-vanaheimfuel']:IsRefueling()
```

{% endcode %}

Returns true if the player is currently in a refueling action.

</details>

<details>

<summary><code>GetNearestStation</code></summary>

{% code overflow="wrap" %}

```lua
exports['stg-vanaheimfuel']:GetNearestStation()
```

{% endcode %}

Returns the station key of the closest gas station to the player.

</details>

#### Server Exports

***

<details>

<summary><code>GetStationInfo</code></summary>

{% code overflow="wrap" %}

```lua
exports['stg-vanaheimfuel']:GetStationInfo(stationID)
```

{% endcode %}

Returns the full cached station row (owner, balance, stock, stats, etc.) for a given station key.

</details>

<details>

<summary><code>GetStationOwner</code></summary>

{% code overflow="wrap" %}

```lua
exports['stg-vanaheimfuel']:GetStationOwner(stationID)
```

{% endcode %}

Returns the owner identifier (character/citizen id) of a station, or nil if unowned.

</details>
