Skip to content

splitString

Toon edited this page Jan 5, 2026 · 3 revisions

Documentation

table splitString(<string> str, <string> sep)

Description

Splits str string by a separator sep. The results are stored in the returned table.

Example

-- Note: This is just a snippet
-- Example of a possible command: getRGBColor 255,0,100
["Function"] = function(args, speaker) 
    local colors = splitString(args[1], ",")
    local r = colors[1] --> 255
    local g = colors[2] --> 0
    local b = colors[3] --> 100
end

Clone this wiki locally