Client
Functions - Clientside
MSK.Register
Register Client Callback (MSK.Trigger)
MSK.Trigger
Trigger Server Callback (MSK.Register)
MSK.TriggerCallback
Trigger Server Callback (MSK.Register)
MSK.Notification
Show a Notification.
You can use farbcodes like: ~g~
Parameters
title - string
- Title
message - string
- Message Text
info - string
- Optional - Default: general
time - number <miliseconds>
- Optional - Default: 5000
MSK.HelpNotification
Show a Help Notification
Parameters
text - string
- Text
MSK.AdvancedNotification
Show a Picture Notification
Parameters
text - string
- Text
title - string
- Title
subtitle - string
- Subtitle
icon - string
- Optional - Default: CHAR_HUMANDEFAULT
flash - boolean
- Optional - Default: true
icontype - number
- Optional - Default: 1
MSK.Draw3DText
Draw a 3D Text (size and font is optional)
Parameters
location - table <x, y, z> / vector3
- Location
text - string
- Text
size - number
- Optional - Default: 1
font - number
- Optional - Default: 0
MSK.DrawGenericText
Draw Generic Text
Parameters
text - string
- Text
outline - boolean
- Text Outline
font - number
- Text Font - Optional, default: 0
size - float
- Text Size - Optional, default: 0.34
color - table <r, g, b, a>
- Text Color - Optional, default: white
position - string
- Text Position on the Screen - Optional, default: bottom center
MSK.HasItem
Checks if you have the item in your inventory (only for ESX or QBCore)
Parameters
itemName - string
- The item name
Retuns
hasItem - table <name, label, count>
- If the player has the item
MSK.Input
Opens an Input Window.
Parameters
header - string
- Header Text
placeholder - string
- Placeholder text
field - boolean
- Small Input or Big Input
Retuns
input - string/number
- Input
Asynchronous
Synchronous
MSK.CloseInput
Closes the current Input Window.
MSK.GetPedMugshot
Get the PedMugshot from a specific Ped.
Parameters
playerPed - number
- The Player Ped
transparent - boolean
- Transparent Background
MSK.GetVehicleInDirection
Get the Vehicle in front of the player
Retuns
vehicle - int
- A vehicle handle
coords - vector3
- The vehicle coords
distance - float
- The distance between the vehicle and the player
MSK.IsVehicleEmpty
Get whether the vehicle is empty or not
Parameters
vehicle - int
- A vehicle handle
Retuns
isVehicleEmpty - boolean
- whether the vehicle is empty or not
MSK.Progressbar
Shows a progressbar. color
is optional and can be set in config.lua
.
Parameters
time - number <miliseconds>
- The time in miliseconds
text - boolean
- Text
color - string
- Color as hex
MSK.ProgressStop
Stops the current ProgressBar.
MSK.Numpad
Opens an Numpad Window.
Parameters
pin - string
- The correct Pin
showPin - boolean
- Show Numbers or ****
Retuns
isCorrect - boolean
- If the inserted pin is correct or not
Asynchronous
Synchronous
MSK.CloseNumpad
Closes the current Numpad Window.
MSK.Subtitle
Shows a text at the center-bottom.
You can use farbcodes like: ~g~
Parameters
text - string
- The message text
duration - number <miliseconds>
- Duration in miliseconds - Optional: default: 8000
MSK.Spinner
Shows a Loading Spinner at the right-bottom
Parameters
text - string
- The message text
typ - number
- The Spinner Type - Optional: default: 4
duration - number <miliseconds>
- Duration in miliseconds - Optional: default: 5000
MSK.ScaleformAnnounce
Shows a Scaleform Announement.
Parameters
header - string
- The Header text
text - string
- The Message text
typ - number
- The Scaleform Type
duration - number <miliseconds>
- Duration in miliseconds - Optional: default: 8000
MSK.LoadAnimDict
Loads the given animation dictionary
Parameters
dictionary - string
- The dictionary
MSK.LoadModel
Loads the given model
Parameters
modelHash - hash
- The Hash of the model
Last updated