-- Add a timeouttimeout = MSK.SetTimeout(miliseconds, function()-- waits miliseconds time // asyncronend)
MSK.DelTimeout
-- Delete the timeoutMSK.DelTimeout(timeout)
MSK.TableContains
Check if a value contains in a table
table = {'value_1', 'value_2'}-- Check if one of the values contains in the tablelocal contains = MSK.TableContains(table, {'value_1', 'value_5'})-- Check if the value contains in the tablelocal contains = MSK.TableContains(table, 'value_1')if contains then-- trueelse-- falseend
MSK.Round
Round a number
MSK.Round(number, decimal)
Example
local num =25.8385MSK.Round(num) -- Output: 26MSK.Round(num, 1) -- Output: 25.8MSK.Round(num, 2) -- Output: 25.84
MSK.Trim
Removes SPACEs in a string
MSK.Trim(string, bool --[[optional]])
Example
local str =' Hello World 'MSK.Trim(str) -- Output: 'HelloWorld' --[[Removes ALL spaces]]MSK.Trim(str, true) -- Output: 'Hello World' --[[Removes leading and trailing spaces]]
MSK.Comma
Let your Number look like 1.000 f.e. for UIs, etc.