Shared

Functions - Clientside & Serverside

MSK.GetConfig

Returns MSKConfig - table - The Config fo msk_core

local MSKConfig = MSK.GetConfig()

MSK.Logging

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

Parameters type - string - The Logging Type

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

Parameters playerPed - number - The Player Ped vehicle - int - A vehicle handle

Returns seat - number - vehicle seat the player is in

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))

Last updated