String
MSK.String.Random
local text = MSK.String.Random(length)
-- Example
local text = MSK.String.Random(3) -- abc
local text = string.upper(MSK.String.Random(3)) -- ABC
-- As an Export:
local text = exports.msk_core:GetRandomString(length)MSK.String.StartsWith
local text = 'Hello'
local startsWith = MSK.String.StartsWith(text, 'H') -- Returns true
local startsWith = MSK.String.StartsWith(text, 'e') -- Returns false
-- As an Export:
local text = exports.msk_core:StartsWith(text, letter)MSK.String.Trim
MSK.String.Split
Last updated