# Shared

## MSK.GetConfig

<mark style="color:green;">**Returns**</mark>\
**MSKConfig** - `table` - The Config fo msk\_core

```lua
local MSKConfig = MSK.GetConfig()
```

## MSK.Logging

Debug and Error Logs. You can change them in `config.lua`

<mark style="color:red;">**Parameters**</mark>\
**type** - `string` - The Logging Type

```lua
MSK.Logging(type, ...)

-- Example
MSK.Logging('info', 'value1', 'value2', ...)
MSK.Logging('debug', 'value1', 'value2', ...)
MSK.Logging('error', 'value1', 'value2', ...)
```

## MSK.GetPedVehicleSeat

Get the the vehicle seat the player is in

<mark style="color:red;">**Parameters**</mark>\
**playerPed** - `number` - The Player Ped\
**vehicle** - `int` - A vehicle handle

<mark style="color:green;">**Returns**</mark>\
**seat** - `number` - vehicle seat the player is in

```lua
local seat = MSK.GetPedVehicleSeat(playerPed, vehicle)

-- clientside
local playerPed = PlayerPedId()
local seat = MSK.GetPedVehicleSeat(playerPed, GetVehiclePedIsIn(playerPed, false))

-- serverside
local playerPed = GetPlayerPed(source)
local seat = MSK.GetPedVehicleSeat(playerPed, GetVehiclePedIsIn(playerPed, false))
```
